plane/space/next.config.js
2023-12-06 20:07:39 +05:30

23 lines
490 B
JavaScript

/** @type {import('next').NextConfig} */
const path = require("path");
const withImages = require("next-images");
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
images: {
unoptimized: true,
},
output: "standalone",
};
if (parseInt(process.env.NEXT_PUBLIC_DEPLOY_WITH_NGINX || "0")) {
const nextConfigWithNginx = withImages({
basePath: "/spaces",
...nextConfig,
});
module.exports = nextConfigWithNginx;
} else {
module.exports = nextConfig;
}