Skip to content

Support Next.js Environment Variables #823

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

Closed
1 of 2 tasks
nbouvrette opened this issue Nov 20, 2021 · 0 comments · Fixed by #842
Closed
1 of 2 tasks

Support Next.js Environment Variables #823

nbouvrette opened this issue Nov 20, 2021 · 0 comments · Fixed by #842
Assignees
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@nbouvrette
Copy link

nbouvrette commented Nov 20, 2021

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.

@nbouvrette nbouvrette added the type: bug code to address defects in shipped code label Nov 20, 2021
@hrishikesh-k hrishikesh-k added type: feature code contributing to the implementation of a feature and/or user facing functionality and removed type: bug code to address defects in shipped code labels Nov 20, 2021
@ascorbic ascorbic self-assigned this Nov 25, 2021
@kodiakhq kodiakhq bot closed this as completed in #842 Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants