plane/space/next.config.js

19 lines
478 B
JavaScript
Raw 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
},
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 });
} else {
module.exports = nextConfig;
}