Is it possible to use a route like [domain].org/api-reference
without Next.JS defaulting to API routes?
#15648
Unanswered
polarizing
asked this question in
Help
Replies: 1 comment
-
Are you on the latest version of Next.js? If not please upgrade. If you are please create an issue with a complete clear and concise reproduction (e.g. a github repository). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems like Next.JS will not export any page with the keyword
api
in the file name. It seems like Next has reserved that keyword for API routes which do not export statically.How would I go about building a static page with a keyword like
api
in the route?For example: [domain].org/docs/api-reference works fine but [domain].org/api-reference will not build.
Beta Was this translation helpful? Give feedback.
All reactions