To achieve this, you can set up a reverse proxy to forward requests from example.com/blog
to blog.netlify.app
while keeping the URL unchanged in the browser's address bar. Here's how:
blog.netlify.app
.example.com/blog
to this Worker.tsconfig.json
so that asset paths resolve properly when served from Netlify.This setup ensures seamless proxying, and SolidJS's absolute paths should work as long as Netlify serves them correctly. I implemented a similar setup on my website, and you can check it out for more details. https://sonic-happy-hour.us/