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

[Next.js] Fix use of environment variables for JSS config generation (without JSS CLI) #1322

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

ambrauer
Copy link
Contributor

@ambrauer ambrauer commented Feb 2, 2023

Description / Motivation

Import dotenv/config so that environment variables are picked up in default JSS config generation.

Note this happened to work if using JSS CLI (since dotenv support is built-in) to run commands (e.g. jss start:connected), but not if using npm (e.g. npm run start:connected).

Testing Details

Local testing and on XM Cloud Staging deployed to Vercel

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@ambrauer ambrauer requested a review from a team February 2, 2023 19:54
@ambrauer ambrauer merged commit ad45ca8 into dev Feb 2, 2023
@ambrauer ambrauer deleted the fix/571650-dotenv-config branch February 2, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant