Skip to content
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

fix: typo in isStaging in with-env example #11305

Merged
merged 3 commits into from
Mar 24, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update examples/with-env-from-next-config-js/next.config.js
  • Loading branch information
Luis Alvarez D committed Mar 24, 2020
commit 930e10e24426af52d4d34dccc32310ea5592fc7a
2 changes: 1 addition & 1 deletion examples/with-env-from-next-config-js/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = phase => {
// when `next build` or `npm run build` is used
const isProd = phase === PHASE_PRODUCTION_BUILD && process.env.STAGING !== '1'
// when `next build` or `npm run build` is used
const isStaging = phase ==== PHASE_PRODUCTION_BUILD && process.env.STAGING === '1'
const isStaging = phase === PHASE_PRODUCTION_BUILD && process.env.STAGING === '1'

console.log(`isDev:${isDev} isProd:${isProd} isStaging:${isStaging}`)

Expand Down