Closed
Description
Steps to reproduce
See https://answers.netlify.com/t/next-js-deploy-error-cannot-find-module-webpack-runtime-js/46231 for full details.
It looks like Basic Features: Environment Variables | Next.js are not supported by the Netlify Next.js plugin.
To avoid duplicating variables it would be great to support this out of the box, like Vercel.
A link to a reproduction repository
https://nextjs.org/docs/basic-features/environment-variables
Plugin version
4.0.0-beta.7
More information about your build
- I am building using the CLI
- I am building using file-based configuration (
netlify.toml
)
What OS are you using?
Windows
Your netlify.toml
file
[build]
publish = ".next"
[[plugins]]
package = "@netlify/plugin-nextjs"
[functions]
included_files = [".next/*.json"]
Relevant log output (or link to your logs)
See https://answers.netlify.com/t/next-js-deploy-error-cannot-find-module-webpack-runtime-js/46231 for full details.