Does anyone have advice on snapping an Express.js web server for Ubuntu Core? I’m seeing a strange issue where my web server seems to start successfully but it’s responding with a 404 for all static assets.
The only slightly unusual thing about this application is that it’s running in Electron rather than plain Node.js as it also has a graphical front end. (The front end starts up fine).
The server works fine when started via npm on Ubuntu or Mac OS, but when I snap it and install it on Ubuntu Core I get the 404 responses. I wondered whether it might be a strange confinement issue with accessing the filesystem to retrieve static assets, but the assets are all part of the package and it doesn’t work in devmode either.
I’m a bit of a Snapcraft beginner so I’m sure this is something simple, but would be grateful for any advice.