plane/space/next.config.js

26 lines
569 B
JavaScript
Raw Permalink Normal View History

2023-08-08 07:25:42 +00:00
/** @type {import('next').NextConfig} */
const path = require("path");
const withImages = require("next-images");
2023-08-08 07:25:42 +00:00
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
2023-08-08 07:25:42 +00:00
experimental: {
outputFileTracingRoot: path.join(__dirname, "../"),
2023-08-08 07:25:42 +00:00
},
images: {
unoptimized: true,
},
output: "standalone",
};
2023-08-08 07:25:42 +00:00
if (parseInt(process.env.NEXT_PUBLIC_DEPLOY_WITH_NGINX || "0")) {
const nextConfigWithNginx = withImages({
basePath: "/spaces",
...nextConfig,
});
2023-09-04 12:25:40 +00:00
module.exports = nextConfigWithNginx;
} else {
module.exports = nextConfig;
}