oyilmaztekin
oyilmaztekin

Reputation: 753

serving static files under the .next/ folder but different url location

There is a stack that uses Next.js as the main dependency. Each page is an independent application. An index page uses www.domain.com/_next/*.js so its base path configured as a / root. Also, another application has a base path same as the homepage but a little difference which is using a query string in the URL.

if the URL is www.domain.com/ then it is a homepage, if the URL is www.domain.com?key=value it means it is a different page and the request will be redirected to the associated application by the Nginx and Load Balancers. So, the problem is:

These applications have different statics created by different pipelines also there is a cache mechanism. Is there a way to solve that conflict just by making some configuration in Next.js?

Upvotes: 0

Views: 1190

Answers (1)

nghiaht
nghiaht

Reputation: 795

P/s: The asker choose the assetPrefix solution

Upvotes: 1

Related Questions