forked from github/plane
sentry changes (#255)
This commit is contained in:
parent
166520dfda
commit
bd399d6d1a
@ -1,10 +1,4 @@
|
|||||||
// This file sets a custom webpack configuration to use your Next.js app
|
|
||||||
// with Sentry.
|
|
||||||
// https://nextjs.org/docs/api-reference/next.config.js/introduction
|
|
||||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
|
||||||
const { withSentryConfig } = require("@sentry/nextjs");
|
const { withSentryConfig } = require("@sentry/nextjs");
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
@ -18,34 +12,10 @@ const nextConfig = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
experimental: {
|
|
||||||
outputFileTracingRoot: path.join(__dirname, "../../"),
|
|
||||||
transpilePackages: ["components/ui"],
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = nextConfig;
|
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
||||||
|
module.exports = withSentryConfig(nextConfig, { silent: true }, { hideSourceMaps: true });
|
||||||
// const withPWA = require("next-pwa")({
|
} else {
|
||||||
// dest: "public",
|
module.exports = nextConfig;
|
||||||
// });
|
}
|
||||||
|
|
||||||
// module.exports = withPWA({
|
|
||||||
// pwa: {
|
|
||||||
// dest: "public",
|
|
||||||
// register: true,
|
|
||||||
// skipWaiting: true,
|
|
||||||
// },
|
|
||||||
// reactStrictMode: false,
|
|
||||||
// swcMinify: true,
|
|
||||||
// images: {
|
|
||||||
// domains: ["vinci-web.s3.amazonaws.com"],
|
|
||||||
// },
|
|
||||||
// output: "standalone",
|
|
||||||
// experimental: {
|
|
||||||
// outputFileTracingRoot: path.join(__dirname, "../../"),
|
|
||||||
// transpilePackages: ["components/ui"],
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
|
|
||||||
module.exports = withSentryConfig(module.exports, { silent: true }, { hideSourcemaps: true });
|
|
||||||
|
@ -8,6 +8,7 @@ const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN;
|
|||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: SENTRY_DSN,
|
dsn: SENTRY_DSN,
|
||||||
|
environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT || "development",
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
// ...
|
// ...
|
||||||
|
@ -8,6 +8,7 @@ const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN;
|
|||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: SENTRY_DSN,
|
dsn: SENTRY_DSN,
|
||||||
|
environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT || "development",
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
// ...
|
// ...
|
||||||
|
@ -8,6 +8,7 @@ const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN;
|
|||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: SENTRY_DSN,
|
dsn: SENTRY_DSN,
|
||||||
|
environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT || "development",
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
// ...
|
// ...
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
"NEXT_PUBLIC_DOCSEARCH_API_KEY",
|
"NEXT_PUBLIC_DOCSEARCH_API_KEY",
|
||||||
"NEXT_PUBLIC_DOCSEARCH_APP_ID",
|
"NEXT_PUBLIC_DOCSEARCH_APP_ID",
|
||||||
"NEXT_PUBLIC_DOCSEARCH_INDEX_NAME",
|
"NEXT_PUBLIC_DOCSEARCH_INDEX_NAME",
|
||||||
"NEXT_PUBLIC_SENTRY_DSN"
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_AUTH_TOKEN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_ENVIRONMENT"
|
||||||
],
|
],
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"build": {
|
"build": {
|
||||||
|
Loading…
Reference in New Issue
Block a user