Svelte build throwing Server Error on railway
Hello. I recently pushed Svelte App to railway, but app still throwing a server error though it deployed normally before.
Git repo link: https://github.com/Gravgor/properties-svelte
GitHub
GitHub - Gravgor/properties-svelte: The Property CMS Application is...
The Property CMS Application is a web-based system designed to help real estate agents and property managers manage their properties and listings more efficiently. The application is designed to be...
5 Replies
Project ID:
4840f04f-d2ee-401e-a7fe-2e8ffc17fd88
You might find these helpful:
- Railway deploys app when I commit code changes but the url shows the same old site
- SvelteKit template invalid GitHub URL
⚠️ experimental feature
4840f04f-d2ee-401e-a7fe-2e8ffc17fd88
screenshots of errors please?
but just from looking at your repo, its a monorepo.
you will need to set the root dir to /frontend in the service settings.
your start script has
vite preview
you never want to run a dev / preview server on railway instead your start command should be using serve
to serve the static files that the build script will generateyep root dir is set. I need to change command and should be working i think
Okey, i got it. Changed to node build with node adapter and everything works.