-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Missing a prefix option #656
Comments
Here's a previous related issue on this topic. |
This is a different issue. Image this: |
@nkzawa Yes I subscribe that. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For now. I can't find a way to runing my next project under a sub path eg.
http://localhost:3000/myapp/
.I try to write custom server by myself. But
/_next/main.js
,/_next/commons.js
and/static/
still read from root path.If there is a
prefix
option that I can setnext start --prefix=/myapp
orconst client = next({dir: '.', dev, prefix: '/myapp'})
. It will work with nginxproxy_pass
easily.Similar prefix in react-router or homepage in create-react-app.
This make us can put more than one next project under same domain name also.
The text was updated successfully, but these errors were encountered: