Hello, Is there a possibility to host the generate...
# troubleshooting
f
Hello, Is there a possibility to host the generated build under a sub path? I'm new to svelte and can't seem to figure it out 🙂
b
@fresh-caravan-44427 hi there! 👋 what do you mean by host the build under a sub path?
f
I'll try to explain myself a bit better 😹 lets say I have an nginx server running on my local computer on port 8000 and I want to serve the generated report under http://localhost:8000/somepath/evidence-report. Any subpages that I have in "evidence-report" redirects itself towards http://localhost:8000/subpage instead of http://localhost:8000/somepath/evidence-report/subpage. I'm guessing it is either possible in nginx or maybe in the generated build?
l
@fresh-caravan-44427 are you attempting to host an evidence static site alongside another site on the same nginx server?
f
@lively-grass-48383 That’s correct
l
I don’t think we have something out of the box on evidence to do this, so nginx conf might be the way to go. This might help ? https://stackoverflow.com/questions/54926687/nginx-configuration-for-multiple-static-sites-on-same-server-instance
f
Unfortunately, I’ve been to that page and it didn’t help me. Been googling nginx config a lot today 😅 I will look into a bit more and update here and give an update here if anyone else is interested later on. Thanks for your help!
🙏 1