2023-02-06 19:37:01 +00:00
|
|
|
const { withSentryConfig } = require("@sentry/nextjs");
|
2022-12-01 13:48:10 +00:00
|
|
|
const path = require("path");
|
|
|
|
|
2022-11-19 14:21:26 +00:00
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: false,
|
|
|
|
swcMinify: true,
|
|
|
|
images: {
|
2023-02-07 05:50:41 +00:00
|
|
|
domains: [
|
|
|
|
"vinci-web.s3.amazonaws.com",
|
|
|
|
"planefs-staging.s3.ap-south-1.amazonaws.com",
|
|
|
|
"planefs.s3.amazonaws.com",
|
|
|
|
],
|
2022-11-19 14:21:26 +00:00
|
|
|
},
|
2023-01-26 18:12:20 +00:00
|
|
|
output: "standalone",
|
2022-11-19 14:21:26 +00:00
|
|
|
};
|
|
|
|
|
2023-02-08 15:14:35 +00:00
|
|
|
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
|
|
|
module.exports = withSentryConfig(nextConfig, { silent: true }, { hideSourceMaps: true });
|
|
|
|
} else {
|
|
|
|
module.exports = nextConfig;
|
|
|
|
}
|