Provide an option to use custom folder name instead of _next

See original GitHub issue

Feature request

Is your feature request related to a problem? Please describe.

We tried to run next export command to generate static assets and to pack our app with cordova or capacitor. It turns out that those engines omit any folders that begin with an underscore without warning. And once you run next export some of the files are put inside of _next directory. So, to run the app one has to find a way to rename this folder and all links inside generated files not to include underscore.

Describe the solution you’d like

It would be really nice to have an option available in next.config.js to provide a name of that directory to be used instead of _next.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

61reactions
timneutkenscommented, Nov 19, 2019

We’re not planning to allow changing the _next folder name as of currently.

6reactions
iammerrickcommented, Sep 7, 2021

Using Next + Static Export cannot be used to write a chrome extension because of this limitation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How set the setting of a custom build directory in nextjs?
You can specify a name to use for a custom build directory to use instead of .next. Open next.config.js and add the… nextjs.org ......
Read more >
Setting a custom build directory - next.config.js
You can specify a name to use for a custom build directory to use instead of .next . Open next.config.js and add the...
Read more >
FolderBrowserDialog add Custom Root Name - Stack Overflow
3 Answers 3 · Default the RootFolder to Desktop · Set your custom folder as the SelectedPath property. fd.SelectedPath = string.Format("D:\Project ...
Read more >
11070: Drake Documents - Custom Folders
To change the name of the new folder, select the folder and click Edit. To delete the new folder, select the folder and...
Read more >
Windows 10 tip: Customize your user profile folder name
If you'd rather choose your own name for the profile folder, the trick is to start by creating a local account whose user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found