This app takes a basic SvelteKit app and uses the build output from the node adapter to run the site as an Electron app.
The node adapter for SvelteKit outputs to a build folder.
The index.cjs file imports the index.js starting point from the build server, then checks the server is running and loads the home page for the app.
In the build folder index.js file:
- Add to top of file: "import log from 'electron-log'"
- Modify server.listen() console log (~line 244) to "log.info()" vice "console.log()".
See electron-log ReadMe for details on where logs are stored and use.