2024-03-26 13:54:42 +00:00
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
2023-05-03 08:06:55 +00:00
|
|
|
require("dotenv").config({ path: ".env" });
|
2023-02-06 19:37:01 +00:00
|
|
|
const { withSentryConfig } = require("@sentry/nextjs");
|
2023-09-14 10:35:31 +00:00
|
|
|
|
2022-11-19 14:21:26 +00:00
|
|
|
const nextConfig = {
|
2023-12-20 08:19:17 +00:00
|
|
|
async headers() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: "/(.*)?",
|
|
|
|
headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2022-11-19 14:21:26 +00:00
|
|
|
reactStrictMode: false,
|
|
|
|
swcMinify: true,
|
|
|
|
images: {
|
2023-11-03 13:39:40 +00:00
|
|
|
remotePatterns: [
|
|
|
|
{
|
|
|
|
protocol: "https",
|
|
|
|
hostname: "**",
|
|
|
|
},
|
2023-02-07 05:50:41 +00:00
|
|
|
],
|
2023-10-27 07:44:03 +00:00
|
|
|
unoptimized: true,
|
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
|
|
|
};
|
|
|
|
|
2024-03-26 13:54:42 +00:00
|
|
|
if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0"), 10) {
|
|
|
|
module.exports = withSentryConfig(nextConfig,
|
|
|
|
{ silent: true, authToken: process.env.SENTRY_AUTH_TOKEN },
|
|
|
|
{ hideSourceMaps: true }
|
|
|
|
);
|
2023-02-08 15:14:35 +00:00
|
|
|
} else {
|
|
|
|
module.exports = nextConfig;
|
|
|
|
}
|