-
Notifications
You must be signed in to change notification settings - Fork 86
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
[Bug]: NETLIFY_NEXT_PLUGIN_SKIP no longer works in v5 #2458
Comments
Hi. Thanks for the report. It loioks like this is a bug related to the way we now handle export. In the new runtime we do handle sites that use |
The publish dir of .next is not an optimised build in comparison to the
|
All my sites are currently broken due to this, is there no way to force netlify to use version 4 of runtime whilst this is fixed? @ascorbic |
The runtime handles it - it doesn't publish the actual |
No worries, I've reverted back to V4 runtime for the time being. For anybody seeing this, this how to do that:
|
This worked for me. Thanks! |
The fix for this is in version 5.1.2 of the runtime, which will roll out to users over the next day or can be installed manually if you want it now. With that you don't need to do anything with the publish dir, as we'll detect the correct location for where it is being built. |
Summary
Sites that have been updated to the Next runtime v5 are no longer respecting the
NETLIFY_NEXT_PLUGIN_SKIP
environment variable, causing static export builds to fail. As a workaround, removing the runtime through the Netlify UI allows the build to complete.A link to a reproduction repository
https://github.com/cfhull/static-export
Expected Result
Having the
NETLIFY_NEXT_PLUGIN_SKIP
env var configured should allow static export builds to succeedActual Result
The
NETLIFY_NEXT_PLUGIN_SKIP
env var is being ignored, and builds are no longer working.Steps to reproduce
Run a static export build in netlify with the next runtime v5
Next Runtime version
5.1.0
Is your issue related to the
app
directory?app
directoryMore information about your build
netlify.toml
)What OS are you using?
None
Your netlify.toml file
`netlify.toml`
# Paste content of your `netlify.toml` file here
Your public/_redirects file
No response
Your
next.config.js
file`next.config.js`
Builds logs (or link to your logs)
Build logs
Function logs
No response
.next JSON files
No response
The text was updated successfully, but these errors were encountered: