How to deploy an solid js app myself
Hi all, good morning. Does anyone have a resource (blog post, tutorial, vídeo, etc) teaching how to deploy a solidjs app if you have your own infrastructure? All i can find are tutorials using third party services like netlify, vercel, etc. I never deployed a js/node app before, and when i run "npm run build" the dist folder just has an index.html and chunked js files that vite compiled, so i supose i don't really need something solidjs specific, but then again, i never deployed a js/node before, so i'd be thankful if you beared with me.
9 Replies
are you using solid-start or just solid-js spa?
spa
with router
not hash router right?
yes, vanilla router
basically two things is needed
1. serve dist folder static
2. rewrite all request to index.html
so i guess nodejs is not even involved in that?
my current cloud solution is aws, so i guess i could just put the dist folder in a bucket? Would that do it?
yeah, you can use whatever you want
not familiar with aws but it should have a way to make rewrites
or navigating to
site.com/path
won't workOk, i'll search more about it, thank you very much for your time and the directions
I with a sample site just placed what was inside of the dist folder in windows server, and it worked like a charm