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

DOP-5199: Team wide Netlfiy env variables #58

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open

Conversation

biancalaube
Copy link
Collaborator

Ticket

DOP-5199

Notes

  • If you go to the netlify team environment variables you should see 5 new variables : DEV, STD, PRD, DOTCOMSTG, DOTCOMPRD
  • these I made variable capitalized but the values in lowercase, please let me know if needs to be a different way around
  • I updated the values in the populate-metadata extension , please let me know if its suppose to be somewhere else as well.

biancalaube and others added 30 commits November 22, 2024 14:44
…#47)

* changes

* cleaing up code

* spelling

* print

* adding check

* adding catch

* cleanign up logs

* adding to types

* fixes:

* update variable

* fix for docs-landing

* nonempty

* update urlaliases

* fixing urlaliases

* spelling

* Update extensions/redirects-and-publish/src/mutRedirectsAndPublish.ts

Co-authored-by: rayangler <[email protected]>

* Update extensions/redirects-and-publish/src/mutRedirectsAndPublish.ts

Co-authored-by: rayangler <[email protected]>

* raymund comments

* clean up

---------

Co-authored-by: rayangler <[email protected]>
Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for git-changed-file-extension canceled.

Name Link
🔨 Latest commit 18b7fb5
🔍 Latest deploy log https://app.netlify.com/sites/git-changed-file-extension/deploys/677c1e0dec698400089edddb

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for populate-data-extension ready!

Name Link
🔨 Latest commit 18b7fb5
🔍 Latest deploy log https://app.netlify.com/sites/populate-data-extension/deploys/677c1e0d3475f5000888a149
😎 Deploy Preview https://deploy-preview-58--populate-data-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for slack-deploy-extension canceled.

Name Link
🔨 Latest commit 18b7fb5
🔍 Latest deploy log https://app.netlify.com/sites/slack-deploy-extension/deploys/677c1e0d403cd90008dfa452

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for redirects-and-publish-extension failed. Why did it fail? →

Name Link
🔨 Latest commit 18b7fb5
🔍 Latest deploy log https://app.netlify.com/sites/redirects-and-publish-extension/deploys/677c1e0d0ddb39000823ee29

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for snooty-cache-extension ready!

Name Link
🔨 Latest commit 18b7fb5
🔍 Latest deploy log https://app.netlify.com/sites/snooty-cache-extension/deploys/677c1e0dc33c9c000838fea8
😎 Deploy Preview https://deploy-preview-58--snooty-cache-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for search-manifest-extension failed. Why did it fail? →

Name Link
🔨 Latest commit 18b7fb5
🔍 Latest deploy log https://app.netlify.com/sites/search-manifest-extension/deploys/677c1e0d63243300082b8130

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for site-links-display failed. Why did it fail? →

Name Link
🔨 Latest commit 18b7fb5
🔍 Latest deploy log https://app.netlify.com/sites/site-links-display/deploys/677c1e0c3d1d730008ae8787

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for persistence-module-ext canceled.

Name Link
🔨 Latest commit 18b7fb5
🔍 Latest deploy log https://app.netlify.com/sites/persistence-module-ext/deploys/677c1e0db5cada00083845b6

): { snootyDb: SnootyDBName; searchDb: SearchDBName; poolDb: PoolDBName } => {
switch (env) {
case 'dotcomstg':
case dbEnvVars.DOTCOMSTG:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Bianca, I'm not sure if using dbEnvVars here is what we want to do. This is getting the value of the that property, which we can set to be whatever. I think it makes sense to do it the way you had it previously, as switch statements typically just use concrete values instead of variable values.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Brandon, thanks for the review! That works for me to go back, but then I am just a little confused as to why we created the environment variables in netlify, are they to be used somewhere else in the repo?

@biancalaube biancalaube requested a review from branberry January 14, 2025 15:02
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.

3 participants