saleor-apps-redis_apl/apps/taxes/sentry.edge.config.ts

22 lines
830 B
TypeScript
Raw Normal View History

feat: redesign taxes app with macaw-ui (#433) * refactor: :recycle: replace material-ui with macaw-ui; remove all views * add apps-ui * feat: add configuration screen (#514) * feat: :sparkles: add basic layout * refactor: :fire: enabled field * refactor: :recycle: move part of config to credentials * refactor: :recycle: move address from channel to provider * feat: :sparkles: add all states for providers * refactor: :recycle: merge redesign with refactor * refactor: :recycle: replace material-ui with macaw-ui; remove all views * fix: :bug: text-decoration on breadcrumb link * feat: :sparkles: add stripe icon * feat: :sparkles: add AppCard * feat: :sparkles: add AppBreadcrumbs and new provider pages * refactor: :recycle: add gridRatio to support two app grids * refactor: :fire: theme-synchronizer test * refactor: :recycle: make breadcrumbs bulletproof * fix: :bug: failing build * feat: :sparkles: add app-layout * build: :arrow_up: upgrade macaw-ui * feat: redesign provider forms (#533) * build: :heavy_plus_sign: add @saleor/react-hook-form-macaw * feat: add binding for Toggle in react-hook-form-macaw * feat: :sparkles: add AppToggle component * feat: :sparkles: add create-avatax-configuration and edit-avatax-configuration * feat: :sparkles: add taxjar-validation-service with address validation * feat: :sparkles: add AvataxValidationService * feat: :sparkles: add edit/create taxjar config * feat: :sparkles: add delete configuration * refactor: :recycle: change invalid address error message * refactor: :recycle: throw in validation services instead of authenticated: true/false * docs: :bulb: add todo comments * refactor: :recycle: better variable naming in parse error * fix: :bug: disable button when loading * refactor: :recycle: make defaultValues required * refactor: :fire: remove custom fontWeights * fix: :bug: toggle form submission bug * feat: :sparkles: extract provider-label and use in forms * feat: :sparkles: use new Section component and change copy * refactor: :recycle: use ProviderLabel in ProvidersTable * build: :green_heart: fix lockfile * fix: :bug: address feedback * feat: channel provider table (#538) * refactor: :fire: providers-config-input-schema * refactor: :recycle: move providers * feat: :sparkles: add basic channel-list * refactor: :truck: move around * feat: :sparkles: add ChannelConfigurationService * feat: :sparkles: add select provider in channel table * refactor: :fire: logger traces * refactor: :loud_sound: refine logs * feat: :white_check_mark: add avatax-config-mock-generator and use in webhooks mock generators * refactor: :recycle: split up avatax-validation.service and add tests for response resolver * feat: :white_check_mark: add avatax-validation-error-resolver tests * refactor: :truck: move taxjar-validation.service to separate folder * feat: :white_check_mark: extract taxjar-validation-error-resolver and add tests * feat: :white_check_mark: add channel-config-mock-generator * feat: :white_check_mark: add ChannelFetcherMockGenerator * test: :white_check_mark: add tests for channel-configuration-merge * test: :white_check_mark: add tests for crud-settings.service * fix: :speech_balloon: channel copy * refactor: :loud_sound: remove data from logs * refactor: :truck: move configuration & validation to configuration folder * fix: :bug: imports * fix: :bug: showing loading & add at the same time * refactor: :recycle: public configurations & obfuscation rework * refactor: :truck: extract repositories from services * refactor: :truck: instance -> connection (#544) * refactor: :recycle: move creating configuration service to procedure * fix: :bug: some paths & names while renaming * Update apps/taxes/src/pages/api/webhooks/order-calculate-taxes.ts * Update apps/taxes/src/pages/api/webhooks/checkout-calculate-taxes.ts * feat: shipping tax code (#555) * fix: :lipstick: minor visual issues * feat: :sparkles: add shipping tax code * fix: :bug: fix toggle * refactor: :recycle: use common table in providers-table * docs: :bulb: add comment to obfuscator * feat: :sparkles: sort countries by label not code * Taxes 💸: Add runtime migrations to schema v2 (#545) * build: :heavy_plus_sign: add dotenv * feat: :construction: add draft of migration scripts * refactor: :recycle: settingsManager to accept appId * feat: :sparkles: tax-providers and channels transforms * feat: :sparkles: add migration classes * feat: :construction: add migration to connection getAll * feat: :construction: add dummy data script * feat: :sparkles: add runtime channel migration * feat: :sparkles: add migration and report scripts * fix: :bug: name of dummy class method * feat: :white_check_mark: add transform tests * build: :green_heart: update lockfile * fix: creating & updating a provider (#563) * refactor: :white_check_mark: improve the test for update * docs: :bulb: comment crud-settings * refactor: :fire: unused file * fix: :bug: appId bug * refactor: :truck: rename dummy-utils * fix: :lipstick: padding in table * refactor: :speech_balloon: change avatax texts * build: :construction_worker: add changeset
2023-06-15 07:01:50 +00:00
/*
* This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on).
* The config you add here will be used whenever one of the edge features is loaded.
* Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.
* https://docs.sentry.io/platforms/javascript/guides/nextjs/
*/
import * as Sentry from "@sentry/nextjs";
import pkg from "./package.json";
feat: redesign taxes app with macaw-ui (#433) * refactor: :recycle: replace material-ui with macaw-ui; remove all views * add apps-ui * feat: add configuration screen (#514) * feat: :sparkles: add basic layout * refactor: :fire: enabled field * refactor: :recycle: move part of config to credentials * refactor: :recycle: move address from channel to provider * feat: :sparkles: add all states for providers * refactor: :recycle: merge redesign with refactor * refactor: :recycle: replace material-ui with macaw-ui; remove all views * fix: :bug: text-decoration on breadcrumb link * feat: :sparkles: add stripe icon * feat: :sparkles: add AppCard * feat: :sparkles: add AppBreadcrumbs and new provider pages * refactor: :recycle: add gridRatio to support two app grids * refactor: :fire: theme-synchronizer test * refactor: :recycle: make breadcrumbs bulletproof * fix: :bug: failing build * feat: :sparkles: add app-layout * build: :arrow_up: upgrade macaw-ui * feat: redesign provider forms (#533) * build: :heavy_plus_sign: add @saleor/react-hook-form-macaw * feat: add binding for Toggle in react-hook-form-macaw * feat: :sparkles: add AppToggle component * feat: :sparkles: add create-avatax-configuration and edit-avatax-configuration * feat: :sparkles: add taxjar-validation-service with address validation * feat: :sparkles: add AvataxValidationService * feat: :sparkles: add edit/create taxjar config * feat: :sparkles: add delete configuration * refactor: :recycle: change invalid address error message * refactor: :recycle: throw in validation services instead of authenticated: true/false * docs: :bulb: add todo comments * refactor: :recycle: better variable naming in parse error * fix: :bug: disable button when loading * refactor: :recycle: make defaultValues required * refactor: :fire: remove custom fontWeights * fix: :bug: toggle form submission bug * feat: :sparkles: extract provider-label and use in forms * feat: :sparkles: use new Section component and change copy * refactor: :recycle: use ProviderLabel in ProvidersTable * build: :green_heart: fix lockfile * fix: :bug: address feedback * feat: channel provider table (#538) * refactor: :fire: providers-config-input-schema * refactor: :recycle: move providers * feat: :sparkles: add basic channel-list * refactor: :truck: move around * feat: :sparkles: add ChannelConfigurationService * feat: :sparkles: add select provider in channel table * refactor: :fire: logger traces * refactor: :loud_sound: refine logs * feat: :white_check_mark: add avatax-config-mock-generator and use in webhooks mock generators * refactor: :recycle: split up avatax-validation.service and add tests for response resolver * feat: :white_check_mark: add avatax-validation-error-resolver tests * refactor: :truck: move taxjar-validation.service to separate folder * feat: :white_check_mark: extract taxjar-validation-error-resolver and add tests * feat: :white_check_mark: add channel-config-mock-generator * feat: :white_check_mark: add ChannelFetcherMockGenerator * test: :white_check_mark: add tests for channel-configuration-merge * test: :white_check_mark: add tests for crud-settings.service * fix: :speech_balloon: channel copy * refactor: :loud_sound: remove data from logs * refactor: :truck: move configuration & validation to configuration folder * fix: :bug: imports * fix: :bug: showing loading & add at the same time * refactor: :recycle: public configurations & obfuscation rework * refactor: :truck: extract repositories from services * refactor: :truck: instance -> connection (#544) * refactor: :recycle: move creating configuration service to procedure * fix: :bug: some paths & names while renaming * Update apps/taxes/src/pages/api/webhooks/order-calculate-taxes.ts * Update apps/taxes/src/pages/api/webhooks/checkout-calculate-taxes.ts * feat: shipping tax code (#555) * fix: :lipstick: minor visual issues * feat: :sparkles: add shipping tax code * fix: :bug: fix toggle * refactor: :recycle: use common table in providers-table * docs: :bulb: add comment to obfuscator * feat: :sparkles: sort countries by label not code * Taxes 💸: Add runtime migrations to schema v2 (#545) * build: :heavy_plus_sign: add dotenv * feat: :construction: add draft of migration scripts * refactor: :recycle: settingsManager to accept appId * feat: :sparkles: tax-providers and channels transforms * feat: :sparkles: add migration classes * feat: :construction: add migration to connection getAll * feat: :construction: add dummy data script * feat: :sparkles: add runtime channel migration * feat: :sparkles: add migration and report scripts * fix: :bug: name of dummy class method * feat: :white_check_mark: add transform tests * build: :green_heart: update lockfile * fix: creating & updating a provider (#563) * refactor: :white_check_mark: improve the test for update * docs: :bulb: comment crud-settings * refactor: :fire: unused file * fix: :bug: appId bug * refactor: :truck: rename dummy-utils * fix: :lipstick: padding in table * refactor: :speech_balloon: change avatax texts * build: :construction_worker: add changeset
2023-06-15 07:01:50 +00:00
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
feat: redesign taxes app with macaw-ui (#433) * refactor: :recycle: replace material-ui with macaw-ui; remove all views * add apps-ui * feat: add configuration screen (#514) * feat: :sparkles: add basic layout * refactor: :fire: enabled field * refactor: :recycle: move part of config to credentials * refactor: :recycle: move address from channel to provider * feat: :sparkles: add all states for providers * refactor: :recycle: merge redesign with refactor * refactor: :recycle: replace material-ui with macaw-ui; remove all views * fix: :bug: text-decoration on breadcrumb link * feat: :sparkles: add stripe icon * feat: :sparkles: add AppCard * feat: :sparkles: add AppBreadcrumbs and new provider pages * refactor: :recycle: add gridRatio to support two app grids * refactor: :fire: theme-synchronizer test * refactor: :recycle: make breadcrumbs bulletproof * fix: :bug: failing build * feat: :sparkles: add app-layout * build: :arrow_up: upgrade macaw-ui * feat: redesign provider forms (#533) * build: :heavy_plus_sign: add @saleor/react-hook-form-macaw * feat: add binding for Toggle in react-hook-form-macaw * feat: :sparkles: add AppToggle component * feat: :sparkles: add create-avatax-configuration and edit-avatax-configuration * feat: :sparkles: add taxjar-validation-service with address validation * feat: :sparkles: add AvataxValidationService * feat: :sparkles: add edit/create taxjar config * feat: :sparkles: add delete configuration * refactor: :recycle: change invalid address error message * refactor: :recycle: throw in validation services instead of authenticated: true/false * docs: :bulb: add todo comments * refactor: :recycle: better variable naming in parse error * fix: :bug: disable button when loading * refactor: :recycle: make defaultValues required * refactor: :fire: remove custom fontWeights * fix: :bug: toggle form submission bug * feat: :sparkles: extract provider-label and use in forms * feat: :sparkles: use new Section component and change copy * refactor: :recycle: use ProviderLabel in ProvidersTable * build: :green_heart: fix lockfile * fix: :bug: address feedback * feat: channel provider table (#538) * refactor: :fire: providers-config-input-schema * refactor: :recycle: move providers * feat: :sparkles: add basic channel-list * refactor: :truck: move around * feat: :sparkles: add ChannelConfigurationService * feat: :sparkles: add select provider in channel table * refactor: :fire: logger traces * refactor: :loud_sound: refine logs * feat: :white_check_mark: add avatax-config-mock-generator and use in webhooks mock generators * refactor: :recycle: split up avatax-validation.service and add tests for response resolver * feat: :white_check_mark: add avatax-validation-error-resolver tests * refactor: :truck: move taxjar-validation.service to separate folder * feat: :white_check_mark: extract taxjar-validation-error-resolver and add tests * feat: :white_check_mark: add channel-config-mock-generator * feat: :white_check_mark: add ChannelFetcherMockGenerator * test: :white_check_mark: add tests for channel-configuration-merge * test: :white_check_mark: add tests for crud-settings.service * fix: :speech_balloon: channel copy * refactor: :loud_sound: remove data from logs * refactor: :truck: move configuration & validation to configuration folder * fix: :bug: imports * fix: :bug: showing loading & add at the same time * refactor: :recycle: public configurations & obfuscation rework * refactor: :truck: extract repositories from services * refactor: :truck: instance -> connection (#544) * refactor: :recycle: move creating configuration service to procedure * fix: :bug: some paths & names while renaming * Update apps/taxes/src/pages/api/webhooks/order-calculate-taxes.ts * Update apps/taxes/src/pages/api/webhooks/checkout-calculate-taxes.ts * feat: shipping tax code (#555) * fix: :lipstick: minor visual issues * feat: :sparkles: add shipping tax code * fix: :bug: fix toggle * refactor: :recycle: use common table in providers-table * docs: :bulb: add comment to obfuscator * feat: :sparkles: sort countries by label not code * Taxes 💸: Add runtime migrations to schema v2 (#545) * build: :heavy_plus_sign: add dotenv * feat: :construction: add draft of migration scripts * refactor: :recycle: settingsManager to accept appId * feat: :sparkles: tax-providers and channels transforms * feat: :sparkles: add migration classes * feat: :construction: add migration to connection getAll * feat: :construction: add dummy data script * feat: :sparkles: add runtime channel migration * feat: :sparkles: add migration and report scripts * fix: :bug: name of dummy class method * feat: :white_check_mark: add transform tests * build: :green_heart: update lockfile * fix: creating & updating a provider (#563) * refactor: :white_check_mark: improve the test for update * docs: :bulb: comment crud-settings * refactor: :fire: unused file * fix: :bug: appId bug * refactor: :truck: rename dummy-utils * fix: :lipstick: padding in table * refactor: :speech_balloon: change avatax texts * build: :construction_worker: add changeset
2023-06-15 07:01:50 +00:00
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 0.5,
feat: redesign taxes app with macaw-ui (#433) * refactor: :recycle: replace material-ui with macaw-ui; remove all views * add apps-ui * feat: add configuration screen (#514) * feat: :sparkles: add basic layout * refactor: :fire: enabled field * refactor: :recycle: move part of config to credentials * refactor: :recycle: move address from channel to provider * feat: :sparkles: add all states for providers * refactor: :recycle: merge redesign with refactor * refactor: :recycle: replace material-ui with macaw-ui; remove all views * fix: :bug: text-decoration on breadcrumb link * feat: :sparkles: add stripe icon * feat: :sparkles: add AppCard * feat: :sparkles: add AppBreadcrumbs and new provider pages * refactor: :recycle: add gridRatio to support two app grids * refactor: :fire: theme-synchronizer test * refactor: :recycle: make breadcrumbs bulletproof * fix: :bug: failing build * feat: :sparkles: add app-layout * build: :arrow_up: upgrade macaw-ui * feat: redesign provider forms (#533) * build: :heavy_plus_sign: add @saleor/react-hook-form-macaw * feat: add binding for Toggle in react-hook-form-macaw * feat: :sparkles: add AppToggle component * feat: :sparkles: add create-avatax-configuration and edit-avatax-configuration * feat: :sparkles: add taxjar-validation-service with address validation * feat: :sparkles: add AvataxValidationService * feat: :sparkles: add edit/create taxjar config * feat: :sparkles: add delete configuration * refactor: :recycle: change invalid address error message * refactor: :recycle: throw in validation services instead of authenticated: true/false * docs: :bulb: add todo comments * refactor: :recycle: better variable naming in parse error * fix: :bug: disable button when loading * refactor: :recycle: make defaultValues required * refactor: :fire: remove custom fontWeights * fix: :bug: toggle form submission bug * feat: :sparkles: extract provider-label and use in forms * feat: :sparkles: use new Section component and change copy * refactor: :recycle: use ProviderLabel in ProvidersTable * build: :green_heart: fix lockfile * fix: :bug: address feedback * feat: channel provider table (#538) * refactor: :fire: providers-config-input-schema * refactor: :recycle: move providers * feat: :sparkles: add basic channel-list * refactor: :truck: move around * feat: :sparkles: add ChannelConfigurationService * feat: :sparkles: add select provider in channel table * refactor: :fire: logger traces * refactor: :loud_sound: refine logs * feat: :white_check_mark: add avatax-config-mock-generator and use in webhooks mock generators * refactor: :recycle: split up avatax-validation.service and add tests for response resolver * feat: :white_check_mark: add avatax-validation-error-resolver tests * refactor: :truck: move taxjar-validation.service to separate folder * feat: :white_check_mark: extract taxjar-validation-error-resolver and add tests * feat: :white_check_mark: add channel-config-mock-generator * feat: :white_check_mark: add ChannelFetcherMockGenerator * test: :white_check_mark: add tests for channel-configuration-merge * test: :white_check_mark: add tests for crud-settings.service * fix: :speech_balloon: channel copy * refactor: :loud_sound: remove data from logs * refactor: :truck: move configuration & validation to configuration folder * fix: :bug: imports * fix: :bug: showing loading & add at the same time * refactor: :recycle: public configurations & obfuscation rework * refactor: :truck: extract repositories from services * refactor: :truck: instance -> connection (#544) * refactor: :recycle: move creating configuration service to procedure * fix: :bug: some paths & names while renaming * Update apps/taxes/src/pages/api/webhooks/order-calculate-taxes.ts * Update apps/taxes/src/pages/api/webhooks/checkout-calculate-taxes.ts * feat: shipping tax code (#555) * fix: :lipstick: minor visual issues * feat: :sparkles: add shipping tax code * fix: :bug: fix toggle * refactor: :recycle: use common table in providers-table * docs: :bulb: add comment to obfuscator * feat: :sparkles: sort countries by label not code * Taxes 💸: Add runtime migrations to schema v2 (#545) * build: :heavy_plus_sign: add dotenv * feat: :construction: add draft of migration scripts * refactor: :recycle: settingsManager to accept appId * feat: :sparkles: tax-providers and channels transforms * feat: :sparkles: add migration classes * feat: :construction: add migration to connection getAll * feat: :construction: add dummy data script * feat: :sparkles: add runtime channel migration * feat: :sparkles: add migration and report scripts * fix: :bug: name of dummy class method * feat: :white_check_mark: add transform tests * build: :green_heart: update lockfile * fix: creating & updating a provider (#563) * refactor: :white_check_mark: improve the test for update * docs: :bulb: comment crud-settings * refactor: :fire: unused file * fix: :bug: appId bug * refactor: :truck: rename dummy-utils * fix: :lipstick: padding in table * refactor: :speech_balloon: change avatax texts * build: :construction_worker: add changeset
2023-06-15 07:01:50 +00:00
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
environment: process.env.SENTRY_ENVIRONMENT,
release: `${pkg.name}@${pkg.version}`,
feat: redesign taxes app with macaw-ui (#433) * refactor: :recycle: replace material-ui with macaw-ui; remove all views * add apps-ui * feat: add configuration screen (#514) * feat: :sparkles: add basic layout * refactor: :fire: enabled field * refactor: :recycle: move part of config to credentials * refactor: :recycle: move address from channel to provider * feat: :sparkles: add all states for providers * refactor: :recycle: merge redesign with refactor * refactor: :recycle: replace material-ui with macaw-ui; remove all views * fix: :bug: text-decoration on breadcrumb link * feat: :sparkles: add stripe icon * feat: :sparkles: add AppCard * feat: :sparkles: add AppBreadcrumbs and new provider pages * refactor: :recycle: add gridRatio to support two app grids * refactor: :fire: theme-synchronizer test * refactor: :recycle: make breadcrumbs bulletproof * fix: :bug: failing build * feat: :sparkles: add app-layout * build: :arrow_up: upgrade macaw-ui * feat: redesign provider forms (#533) * build: :heavy_plus_sign: add @saleor/react-hook-form-macaw * feat: add binding for Toggle in react-hook-form-macaw * feat: :sparkles: add AppToggle component * feat: :sparkles: add create-avatax-configuration and edit-avatax-configuration * feat: :sparkles: add taxjar-validation-service with address validation * feat: :sparkles: add AvataxValidationService * feat: :sparkles: add edit/create taxjar config * feat: :sparkles: add delete configuration * refactor: :recycle: change invalid address error message * refactor: :recycle: throw in validation services instead of authenticated: true/false * docs: :bulb: add todo comments * refactor: :recycle: better variable naming in parse error * fix: :bug: disable button when loading * refactor: :recycle: make defaultValues required * refactor: :fire: remove custom fontWeights * fix: :bug: toggle form submission bug * feat: :sparkles: extract provider-label and use in forms * feat: :sparkles: use new Section component and change copy * refactor: :recycle: use ProviderLabel in ProvidersTable * build: :green_heart: fix lockfile * fix: :bug: address feedback * feat: channel provider table (#538) * refactor: :fire: providers-config-input-schema * refactor: :recycle: move providers * feat: :sparkles: add basic channel-list * refactor: :truck: move around * feat: :sparkles: add ChannelConfigurationService * feat: :sparkles: add select provider in channel table * refactor: :fire: logger traces * refactor: :loud_sound: refine logs * feat: :white_check_mark: add avatax-config-mock-generator and use in webhooks mock generators * refactor: :recycle: split up avatax-validation.service and add tests for response resolver * feat: :white_check_mark: add avatax-validation-error-resolver tests * refactor: :truck: move taxjar-validation.service to separate folder * feat: :white_check_mark: extract taxjar-validation-error-resolver and add tests * feat: :white_check_mark: add channel-config-mock-generator * feat: :white_check_mark: add ChannelFetcherMockGenerator * test: :white_check_mark: add tests for channel-configuration-merge * test: :white_check_mark: add tests for crud-settings.service * fix: :speech_balloon: channel copy * refactor: :loud_sound: remove data from logs * refactor: :truck: move configuration & validation to configuration folder * fix: :bug: imports * fix: :bug: showing loading & add at the same time * refactor: :recycle: public configurations & obfuscation rework * refactor: :truck: extract repositories from services * refactor: :truck: instance -> connection (#544) * refactor: :recycle: move creating configuration service to procedure * fix: :bug: some paths & names while renaming * Update apps/taxes/src/pages/api/webhooks/order-calculate-taxes.ts * Update apps/taxes/src/pages/api/webhooks/checkout-calculate-taxes.ts * feat: shipping tax code (#555) * fix: :lipstick: minor visual issues * feat: :sparkles: add shipping tax code * fix: :bug: fix toggle * refactor: :recycle: use common table in providers-table * docs: :bulb: add comment to obfuscator * feat: :sparkles: sort countries by label not code * Taxes 💸: Add runtime migrations to schema v2 (#545) * build: :heavy_plus_sign: add dotenv * feat: :construction: add draft of migration scripts * refactor: :recycle: settingsManager to accept appId * feat: :sparkles: tax-providers and channels transforms * feat: :sparkles: add migration classes * feat: :construction: add migration to connection getAll * feat: :construction: add dummy data script * feat: :sparkles: add runtime channel migration * feat: :sparkles: add migration and report scripts * fix: :bug: name of dummy class method * feat: :white_check_mark: add transform tests * build: :green_heart: update lockfile * fix: creating & updating a provider (#563) * refactor: :white_check_mark: improve the test for update * docs: :bulb: comment crud-settings * refactor: :fire: unused file * fix: :bug: appId bug * refactor: :truck: rename dummy-utils * fix: :lipstick: padding in table * refactor: :speech_balloon: change avatax texts * build: :construction_worker: add changeset
2023-06-15 07:01:50 +00:00
});