Next.js Discord

Discord Forum

Running nextjs app on a /docs path

Unanswered
Siamese posted this in #help-forum
Open in Discord
SiameseOP
Hey. I'm using coolify so it strips the /docs path so the nextjs docker container thinks it's being accessed at /.
After configuing assetPrefix to /docs, the css started to work but the navigation is still broken since it redirects to domain.com/<page> rather than domain.com/docs/<page>.
I tried using basePath but then to access docs I need to open domain.com/docs/docs

0 Replies