Closed anae-git closed 1 year ago
Hello, yes it is the following:
git clone https://github.com/nioc/xmpp-web.git
cd xmpp-web
edit public/local.js
npm ci
npm run build
Then you will have a dist folder which contains all the assets to put on a web server (Apache, Nginx, ...).
Thank you very much. One thing I found strange was that I had to go through and fix a bunch of ternaries because of:
$ npm run build
> xmpp-web@0.9.6 build
> vite build
failed to load config from /var/www/xmpp-web/vite.config.js
error during build:
/var/www/xmpp-web/node_modules/vite-plugin-pwa/dist/index.js:107
const swType = options2.devOptions.type ?? "classic";
^
As in, turn that into const swType = options2.devOptions.type ? options2.devOptions.type : "classic";
many times in that file to make it work. I assume I have the wrong version of something installed that doesn't support ??
but I am on an up to date Debian 11.6 VM.
Looks like Debian 11's Node 12.22 is too old. I manually installed Node 16.19.0 to fix it.
"Node 12" 😱 Many libraries won't works with older node versions (current LTS version is 18 😉).
Could someone flesh out the install from source documentation a bit, please?
I think it is something along the lines of (but I am probably missing something):
along with an nginx proxy config and the bare minimum prosody config would be really nice to see broken out.