plane/space/next.config.js

23 lines
490 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,
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;
}