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

remove assetPrefix in normalizeRoute fn #2002

Closed
wants to merge 1 commit into from

Conversation

tscanlin
Copy link
Contributor

This change makes it so you can easily serve multiple static next apps from subfolders on the same domain using the already available assetPrefix option.

Without this change the file that's requested is like:
/${assetPrefix}/_next/c0bae9f4-37d0-4f02-8a91-08fe02d6fbfb/page/${assetPrefix}/index.js

instead of:
/${assetPrefix}/_next/c0bae9f4-37d0-4f02-8a91-08fe02d6fbfb/page/index.js

like you'd want.

@arunoda
Copy link
Contributor

arunoda commented May 18, 2017

Serving Next.js apps from multiple directories is not a goal of Next.js at the moment.
So, I can't take this in.

@tscanlin
Copy link
Contributor Author

FWIW it seems that this fix solved the issue for multiple next apps on one domain: #257

It would be awesome if we could get this landed.

@wesbos
Copy link
Contributor

wesbos commented Jun 2, 2017

+1 for this - I'm trying to run Next though an express app to power my admin console.

@gcpantazis
Copy link
Contributor

gcpantazis commented Jun 13, 2017

#2186 would supercede this by making the _next directory directly configurable.

assetPrefix is more meant for CDN, if memory serves?

@dvakatsiienko
Copy link
Contributor

We are following the same approach with different next apps in nested pathes on the same domain. We need this functionality also!

@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

Successfully merging this pull request may close these issues.

5 participants