fix: removing deploy with nginx env

This commit is contained in:
sriram veeraghanta 2024-05-09 21:05:51 +05:30
parent 58bf056ddb
commit 45bb1153ee
9 changed files with 45 additions and 32 deletions

View file

@ -5,17 +5,18 @@ const { withSentryConfig } = require("@sentry/nextjs");
const nextConfig = {
trailingSlash: true,
output: "standalone",
basePath: process.env.NEXT_PUBLIC_SPACE_BASE_PATH || "",
reactStrictMode: false,
swcMinify: true,
async headers() {
return [
{
source: "/",
headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }],
headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }], // clickjacking protection
},
];
},
basePath: "/spaces",
reactStrictMode: false,
swcMinify: true,
images: {
remotePatterns: [
{
@ -25,7 +26,6 @@ const nextConfig = {
],
unoptimized: true,
},
output: "standalone",
};
if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0", 10)) {