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: make NODE_ENV "production" for prod builds of launchpad #25320

Merged
merged 7 commits into from Jan 3, 2023

Conversation

marktnoonan
Copy link
Contributor

@marktnoonan marktnoonan commented Dec 30, 2022

  • Closes N/A

No issue has been created for this, it's just something I noticed when somebody shared a screenshot on Discord.

Screen Shot 2022-12-30 at 5 07 26 PM

User facing changelog

Error toasts will no longer incorrectly display in the launchpad.

Additional details

Couple of small changes to make sure that, which not watching app and launchpad builds, but doing a regular production build, we pass theprocess.env.NODE_ENV through for use in Vue. This corrects an issue where it is currently possible to see low quality error toasts that are intended for use during development, in the production launchpad.

I also removed production from the app watch job since in situations where we are in watch mode, that's development and we want the toasts to appear.

There are no other side-effects of this change that I can think of, as nothing else in the Vue app is looking at process.env.NODE_ENV.

Steps to test

Not many great ways to test this, I did build a binary locally to make sure that the settings I changed were definitely used and printed out the NODE_ENV in the UI:

Screen Shot 2022-12-30 at 4 01 55 PM

How has the user experience changed?

PR Tasks

  • [na] Have tests been added/updated?
  • [na] Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • [na] Has a PR for user-facing changes been opened in cypress-documentation?
  • [na] Have API changes been updated in the type definitions?

@marktnoonan marktnoonan requested a review from a team December 30, 2022 22:06
@emilyrohrbough emilyrohrbough merged commit 5f536fe into develop Jan 3, 2023
@emilyrohrbough emilyrohrbough deleted the marktnoonan/node-env branch January 3, 2023 19:45
tgriesser added a commit that referenced this pull request Jan 18, 2023
* develop: (45 commits)
  fix: re-enable CYPRESS_INTERNAL_VITE_DEV development (#25364)
  fix: add skip domain injection description (#25463)
  fix: revert CSP header and script-src addition (#25445)
  chore: Update v8 snapshot cache (#25401)
  feat: Do not strip CSP headers from HTTPResponse (#24760)
  fix: keep spaces in formatted output in test runner (#24687)
  fix: Restrict dependency versions to known supported ranges (#25380)
  chore: Update v8 snapshot cache (#25370)
  feat: experimental skip domain injection (#25307)
  chore: support vite v4 for component testing (#25365)
  feat: Use JSX/TSX in generated spec filenames (#25318)
  docs(angular): Properties that are spied upon have to be defined within `componentProperties` instead of on root level. (#25359)
  chore: remove lint-changed from scripts/docs (#25308)
  chore: bump to 12.3.0 [skip ci] (#25355)
  fix: make NODE_ENV "production" for prod builds of launchpad (#25320)
  fix: .contains() should only return one element at all times (#25250)
  feat: add currentRetry to Cypress API (#25297)
  chore: release @cypress/webpack-dev-server-v3.2.2
  chore: release create-cypress-tests-v2.0.1
  fix: change wording for spec creation (#25271)
  ...
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.

None yet

4 participants