Next.js Discord

Discord Forum

basePath and router.push() in App Router

Answered
Czechoslovakian Wolfdog posted this in #help-forum
Open in Discord
Czechoslovakian WolfdogOP
I'm running into an issue pushing with useRouter from next/navigation, while using basePath. The first several CSS asset requests will not have the basePath applied, but every other asset after will be fine. A hard refresh fetch everything correctly, but the next push will have the same problem again. I've tried with and without assetPrefix as well. Deploying to docker, using Nextjs 14. Happy to provide more info if needed!
Answered by Czechoslovakian Wolfdog
Fixed in 14.0.2

Thanks, team!
View full answer

1 Reply

Czechoslovakian WolfdogOP
Fixed in 14.0.2

Thanks, team!
Answer