From 3cb10a43ea55e47878f769f837c33ef499051c4a Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 20 Jun 2023 11:25:48 +0800 Subject: [PATCH] fix: sentry auth token Signed-off-by: Innei --- next.config.mjs | 5 ++--- package.json | 1 + pnpm-lock.yaml | 12 +++--------- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 90d53294fd..fa62d0e8c8 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -44,10 +44,9 @@ let nextConfig = { config.plugins.push( sentryWebpackPlugin({ org: 'inneis-site', - headers: { - Authorization: `DSN ${process.env.NEXT_PUBLIC_SENTRY_DSN}`, - }, + project: 'springtide', + authToken: process.env.NEXT_PUBLIC_SENTRY_AUTH_TOKEN, }), ) } diff --git a/package.json b/package.json index 9d02da56b4..4942cebea2 100644 --- a/package.json +++ b/package.json @@ -84,6 +84,7 @@ "@innei/eslint-config-react-ts": "0.10.1", "@innei/prettier": "0.10.1", "@next/bundle-analyzer": "13.4.6", + "@sentry/cli": "2.19.1", "@tailwindcss/typography": "0.5.9", "@types/color": "3.0.3", "@types/js-cookie": "3.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93fd0ce696..cbea7680e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,6 +139,9 @@ devDependencies: '@next/bundle-analyzer': specifier: 13.4.6 version: 13.4.6 + '@sentry/cli': + specifier: 2.19.1 + version: 2.19.1 '@tailwindcss/typography': specifier: 0.5.9 version: 0.5.9(tailwindcss@3.3.2) @@ -2177,7 +2180,6 @@ packages: transitivePeerDependencies: - encoding - supports-color - dev: false /@sentry/core@7.53.1: resolution: {integrity: sha512-DAH8IJNORJJ7kQLqsZuhMkN6cwJjXzFuuUoZor7IIDHIHjtl51W+2F3Stg3+I3ZoKDfJfUNKqhipk2WZjG0FBg==} @@ -2994,7 +2996,6 @@ packages: debug: 4.3.4 transitivePeerDependencies: - supports-color - dev: false /aggregate-error@3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} @@ -4585,7 +4586,6 @@ packages: debug: 4.3.4 transitivePeerDependencies: - supports-color - dev: false /human-signals@2.1.0: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} @@ -5411,7 +5411,6 @@ packages: optional: true dependencies: whatwg-url: 5.0.0 - dev: false /node-fetch@3.3.1: resolution: {integrity: sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==} @@ -6177,7 +6176,6 @@ packages: /progress@2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} engines: {node: '>=0.4.0'} - dev: false /prop-types@15.8.1: resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} @@ -6189,7 +6187,6 @@ packages: /proxy-from-env@1.1.0: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} - dev: false /ps-tree@1.2.0: resolution: {integrity: sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==} @@ -7021,7 +7018,6 @@ packages: /tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - dev: false /tr46@1.0.1: resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} @@ -7321,7 +7317,6 @@ packages: /webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - dev: false /webidl-conversions@4.0.2: resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} @@ -7405,7 +7400,6 @@ packages: dependencies: tr46: 0.0.3 webidl-conversions: 3.0.1 - dev: false /whatwg-url@7.1.0: resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==}