-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
De-experimentalize the public/
folder
#8063
Comments
This would pose a small problem for Gitlab pages - they require your out/dist dir to be |
@haywirez the public directory is copied elsewhere on |
https://github.com/zeit/next.js/blob/master/errors/static-dir-deprecated.md
Any proper solution without git bloat into public folder? |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Before we shipped Next.js 9 we removed a canary-only feature that was the
public/
folder.We should reintroduce the
public/
folder as a replacement for thestatic/
folder, along these guidelines:static/
folder should warn about deprecation and provide migration instructions (movestatic/
topublic/
, i.e.public/static/
)next build
andnext export
should forbid output into thepublic/
directory (i.e.distDir
and out dir)public/
folder should have a default mime type applied (e.g.mime.getType(fileExt)
)The text was updated successfully, but these errors were encountered: