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

Missing a prefix option #656

Closed
cncolder opened this issue Jan 4, 2017 · 4 comments
Closed

Missing a prefix option #656

cncolder opened this issue Jan 4, 2017 · 4 comments

Comments

@cncolder
Copy link
Contributor

cncolder commented Jan 4, 2017

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 set next start --prefix=/myapp or const client = next({dir: '.', dev, prefix: '/myapp'}). It will work with nginx proxy_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.

@arunoda
Copy link
Contributor

arunoda commented Jan 4, 2017

Here's a previous related issue on this topic.
See: #596

@arunoda arunoda closed this as completed Jan 4, 2017
@cncolder
Copy link
Contributor Author

cncolder commented Jan 5, 2017

This is a different issue.
Param routing cannot custom internal scripts path.

Image this:
I have two next app running on http://example.com/blog and http://example.com/product. These two app cannot share /_next/main.js and another common files.

@nkzawa
Copy link
Contributor

nkzawa commented Jan 5, 2017

@cncolder this should be #257

@cncolder
Copy link
Contributor Author

cncolder commented Jan 5, 2017

@nkzawa Yes I subscribe that.

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants