Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve site from subdirectory #642

Closed
CubeOfCheese opened this issue Jul 16, 2021 · 1 comment
Closed

Serve site from subdirectory #642

CubeOfCheese opened this issue Jul 16, 2021 · 1 comment

Comments

@CubeOfCheese
Copy link

Hello I am trying to serve this site from a subdirectory on netlify. siteurl.com/blog

I am having trouble achieving this on netlify so I decided to try to get it working locally first but I am having trouble with that as well.
I have set the baseUrl in site/config.toml like so
baseurl = "/blog"
But when I run npm run preview it opens the site at localhost:3000 instead of localhost:3000/blog while the latter url produces a 404 error.

Any assistance with this would be greatly appreciated and I am happy to provide any clarifying information

@martinjagodic
Copy link
Member

Closing as this is not an issue but a request for help. @CubeOfCheese if you still seek an answer to this, please join us in Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants