Next.js: Custom directory for "pages"

Created on 1 Mar 2018  路  5Comments  路  Source: vercel/next.js

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

I'd like to use a custom sub directory to store my "pages". I looked in the next.config.js but couldn't find any way of customizing it. Also, I found https://github.com/zeit/next.js/blob/07af67bfea3eb366c3b3457db9534d532d2e902b/server/build/webpack/utils.js#L4 which makes me thing it's not possible yet.

Is this something you intend to support?

Most helpful comment

We really should consider re-opening this.

Adding a variable to allow.

public/pages/
admin/pages/

So that we can have 2 directories of pages.

All 5 comments

It's not possible. And it's been discussed in other issues.

We're currently not planning to change it to be configurable.

We really should consider re-opening this.

Adding a variable to allow.

public/pages/
admin/pages/

So that we can have 2 directories of pages.

How is this not a thing?

Im surprised this is an issue, will probably have to spend hours now figuring a workaround

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

jesselee34 picture jesselee34  路  3Comments

pie6k picture pie6k  路  3Comments

renatorib picture renatorib  路  3Comments

rauchg picture rauchg  路  3Comments