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
mdynnl
mdynnl17mo ago
are you using solid-start or just solid-js spa?
fonsecovizk
fonsecovizkOP17mo ago
spa with router
mdynnl
mdynnl17mo ago
not hash router right?
fonsecovizk
fonsecovizkOP17mo ago
yes, vanilla router
mdynnl
mdynnl17mo ago
basically two things is needed 1. serve dist folder static 2. rewrite all request to index.html
fonsecovizk
fonsecovizkOP17mo ago
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?
mdynnl
mdynnl17mo ago
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 work
fonsecovizk
fonsecovizkOP17mo ago
Ok, i'll search more about it, thank you very much for your time and the directions
longinos
longinos10mo ago
I with a sample site just placed what was inside of the dist folder in windows server, and it worked like a charm
Want results from more Discord servers?
Add your server