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

feat: improve sentry setup in Taxes App #1051

Merged
merged 17 commits into from
Oct 12, 2023
Merged

Conversation

peelar
Copy link
Member

@peelar peelar commented Oct 9, 2023

Features:

  • copied the Sentry config from the Adyen App
  • added new dependency: @next/env
  • added new env vars

Next steps:

  • move release-utils to shared

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2023

🦋 Changeset detected

Latest commit: e909a4e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-app-taxes Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saleor-app-emails-and-messages 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 0:32am
saleor-app-klaviyo 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 0:32am
saleor-app-taxes ✅ Ready (Inspect) Visit Preview Oct 10, 2023 0:32am
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
saleor-app-cms-v2 ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 0:32am
saleor-app-crm ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 0:32am
saleor-app-data-importer ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 0:32am
saleor-app-invoices ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 0:32am
saleor-app-products-feed ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 0:32am
saleor-app-search ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 0:32am
saleor-app-segment ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 0:32am
saleor-app-slack ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 0:32am

to be removed before merge
apps/taxes/.env.example Outdated Show resolved Hide resolved
apps/taxes/sentry.client.config.ts Outdated Show resolved Hide resolved
Comment on lines 25 to 27
"VERCEL_GIT_COMMIT_SHA",
"VERCEL_URL",
"VERCEL"
Copy link
Member

Choose a reason for hiding this comment

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

Won't this break caching? VERCEL_GIT_COMMIT_SHA will change on every single commit 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

All env vars need to be referenced in turbo.json. Otherwise, we get an eslint error turbo/no-undeclared-env-vars.

Copy link
Member

Choose a reason for hiding this comment

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

Could you use this? https://turbo.build/repo/docs/core-concepts/caching/environment-variable-inputs#unhashed-environment-variables

globalPassThroughEnv / passThroughEnv
This way it won't be included in cache

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. I added it there, but I had to change the eslint config. Unfortunately it doesn't take the globalPassThroughEnv vars into account

@peelar peelar merged commit 07d7d09 into main Oct 12, 2023
7 checks passed
@peelar peelar deleted the taxes/improve-sentry-setup branch October 12, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants