-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
with-universal-configuration example errors #4623
Comments
Irrespective of this error, I'd love an alternate path to defining our own environment variables at build time. |
You should use commonjs modules in // .babelrc.js
const env = require("./env-config.js");
module.exports = {
presets: ["next/babel"],
plugins: [["transform-define", env]]
}; I'll make PR on this issue :) |
You're lovely people, thank you! |
lependu
pushed a commit
to lependu/next.js
that referenced
this issue
Jun 19, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Examples bug report
https://github.com/zeit/next.js/tree/canary/examples/with-universal-configuration
Example name
with-universal-configuration
Describe the bug
The text was updated successfully, but these errors were encountered: