From 597ea26d7ba24093db39e6ad90e0f8c7b8f30883 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Fri, 27 Oct 2023 13:14:03 +0530 Subject: [PATCH] fix: enabling the nextjs static site generation for web and space (#2547) --- .gitignore | 3 ++- space/next.config.js | 3 +++ space/package.json | 7 ++++--- web/next.config.js | 1 + web/package.json | 3 ++- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 8bf25a3f3..7568602d3 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,8 @@ node_modules # Production /build -dist +dist/ +out/ # Misc .DS_Store diff --git a/space/next.config.js b/space/next.config.js index bd3749f10..7e9865784 100644 --- a/space/next.config.js +++ b/space/next.config.js @@ -8,6 +8,9 @@ const nextConfig = { experimental: { outputFileTracingRoot: path.join(__dirname, "../"), }, + images: { + unoptimized: true, + }, output: "standalone", }; diff --git a/space/package.json b/space/package.json index 3c32211d0..5f3f60dc9 100644 --- a/space/package.json +++ b/space/package.json @@ -7,7 +7,8 @@ "develop": "next dev -p 4000", "build": "next build", "start": "next start -p 4000", - "lint": "next lint" + "lint": "next lint", + "export": "next export" }, "dependencies": { "@blueprintjs/core": "^4.16.3", @@ -16,8 +17,8 @@ "@emotion/styled": "^11.11.0", "@headlessui/react": "^1.7.13", "@mui/material": "^5.14.1", - "@plane/ui" : "*", - "@plane/lite-text-editor" : "*", + "@plane/ui": "*", + "@plane/lite-text-editor": "*", "@plane/rich-text-editor": "*", "axios": "^1.3.4", "clsx": "^2.0.0", diff --git a/web/next.config.js b/web/next.config.js index 058a68b7d..1bfac8fd2 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -21,6 +21,7 @@ const nextConfig = { "localhost", ...extraImageDomains, ], + unoptimized: true, }, output: "standalone", experimental: { diff --git a/web/package.json b/web/package.json index c80d4c509..c4513a555 100644 --- a/web/package.json +++ b/web/package.json @@ -7,7 +7,8 @@ "develop": "next dev --port 3000", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "export": "next export" }, "dependencies": { "@blueprintjs/core": "^4.16.3",