2023-08-08 12:55:42 +05:30
|
|
|
/** @type {import('next').NextConfig} */
|
2023-08-22 01:13:51 +05:30
|
|
|
const path = require("path");
|
2023-09-03 20:55:37 +05:30
|
|
|
const withImages = require("next-images");
|
2023-08-08 12:55:42 +05:30
|
|
|
|
2023-09-03 20:55:37 +05:30
|
|
|
const nextConfig = {
|
2023-08-21 18:12:41 +05:30
|
|
|
reactStrictMode: false,
|
|
|
|
|
swcMinify: true,
|
2023-08-08 12:55:42 +05:30
|
|
|
experimental: {
|
2023-09-03 18:50:30 +05:30
|
|
|
outputFileTracingRoot: path.join(__dirname, "../"),
|
2023-08-08 12:55:42 +05:30
|
|
|
},
|
2023-10-27 13:14:03 +05:30
|
|
|
images: {
|
|
|
|
|
unoptimized: true,
|
|
|
|
|
},
|
2023-08-22 01:13:51 +05:30
|
|
|
output: "standalone",
|
2023-09-03 20:55:37 +05:30
|
|
|
};
|
2023-08-08 12:55:42 +05:30
|
|
|
|
2023-09-03 20:55:37 +05:30
|
|
|
if (parseInt(process.env.NEXT_PUBLIC_DEPLOY_WITH_NGINX || "0")) {
|
2023-09-12 20:32:26 +05:30
|
|
|
const nextConfigWithNginx = withImages({
|
|
|
|
|
basePath: "/spaces",
|
|
|
|
|
...nextConfig,
|
|
|
|
|
});
|
2023-09-04 17:55:40 +05:30
|
|
|
module.exports = nextConfigWithNginx;
|
2023-09-03 20:55:37 +05:30
|
|
|
} else {
|
|
|
|
|
module.exports = nextConfig;
|
|
|
|
|
}
|