fix: selfhosted fixes (#2154)

* fix: selfhosted fixes

* fix: updated env example
This commit is contained in:
sriram veeraghanta 2023-09-12 20:32:26 +05:30
parent b8dd9ca729
commit bc99ec0f1d
8 changed files with 16 additions and 9 deletions

View file

@ -12,7 +12,10 @@ const nextConfig = {
};
if (parseInt(process.env.NEXT_PUBLIC_DEPLOY_WITH_NGINX || "0")) {
const nextConfigWithNginx = withImages({ basePath: "/spaces", ...nextConfig });
const nextConfigWithNginx = withImages({
basePath: "/spaces",
...nextConfig,
});
module.exports = nextConfigWithNginx;
} else {
module.exports = nextConfig;