mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
bc99ec0f1d
* fix: selfhosted fixes * fix: updated env example
23 lines
529 B
JavaScript
23 lines
529 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const path = require("path");
|
|
const withImages = require("next-images");
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: false,
|
|
swcMinify: true,
|
|
experimental: {
|
|
outputFileTracingRoot: path.join(__dirname, "../"),
|
|
},
|
|
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;
|
|
}
|