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 committed by GitHub
parent 2186db8bba
commit cdb888c23e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;