How to change the root path for Next
Unanswered
Beauceron posted this in #help-forum
BeauceronOP
So it's kind of a niche use case I suppose so maybe not many knows the answer. However we want to deploy a next app not at the root of the site. So basically it's deployed to /frontend which is going to be where the new root of the project lives. My issue is now that it's trying to get the chunks from /.
Hint: changing basePath in next config isn't the way to go about it.
Hint: changing basePath in next config isn't the way to go about it.
1 Reply
i have used basePath for this, and have never seen any issue with it (it adds the path to every request)...