2023-05-03 08:06:55 +00:00
|
|
|
require("dotenv").config({ path: ".env" });
|
2023-10-09 12:56:24 +00:00
|
|
|
const { i18n } = require("./next-i18next.config.js");
|
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");
|
2023-09-14 10:35:31 +00:00
|
|
|
|
2023-05-03 08:06:55 +00:00
|
|
|
const extraImageDomains = (process.env.NEXT_PUBLIC_EXTRA_IMAGE_DOMAINS ?? "")
|
|
|
|
.split(",")
|
|
|
|
.filter((domain) => domain.length > 0);
|
2022-12-01 13:48:10 +00:00
|
|
|
|
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",
|
2023-10-04 14:34:35 +00:00
|
|
|
"planefs-staging.s3.amazonaws.com",
|
2023-03-07 19:37:00 +00:00
|
|
|
"images.unsplash.com",
|
2023-04-05 19:21:15 +00:00
|
|
|
"avatars.githubusercontent.com",
|
2023-05-25 04:54:20 +00:00
|
|
|
"localhost",
|
2023-04-17 23:30:36 +00:00
|
|
|
...extraImageDomains,
|
2023-02-07 05:50:41 +00:00
|
|
|
],
|
2022-11-19 14:21:26 +00:00
|
|
|
},
|
2023-01-26 18:12:20 +00:00
|
|
|
output: "standalone",
|
2023-02-21 06:01:43 +00:00
|
|
|
experimental: {
|
|
|
|
// this includes files from the monorepo base two directories up
|
2023-09-03 13:20:30 +00:00
|
|
|
outputFileTracingRoot: path.join(__dirname, "../"),
|
2023-02-21 06:01:43 +00:00
|
|
|
},
|
2023-10-09 12:56:24 +00:00
|
|
|
i18n,
|
2022-11-19 14:21:26 +00:00
|
|
|
};
|
|
|
|
|
2023-02-21 19:23:22 +00:00
|
|
|
if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0")) {
|
2023-02-08 15:14:35 +00:00
|
|
|
module.exports = withSentryConfig(nextConfig, { silent: true }, { hideSourceMaps: true });
|
|
|
|
} else {
|
|
|
|
module.exports = nextConfig;
|
|
|
|
}
|