forked from github/plane
21e042c852
* feat: sentry integrated * fix: removed unnecessary env variable
48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
// 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");
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const path = require("path");
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: false,
|
|
swcMinify: true,
|
|
images: {
|
|
domains: ["vinci-web.s3.amazonaws.com", "planefs-staging.s3.ap-south-1.amazonaws.com"],
|
|
},
|
|
output: "standalone",
|
|
experimental: {
|
|
outputFileTracingRoot: path.join(__dirname, "../../"),
|
|
transpilePackages: ["components/ui"],
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|
|
|
|
// const withPWA = require("next-pwa")({
|
|
// dest: "public",
|
|
// });
|
|
|
|
// 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 });
|