Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix Space Cloudflare Pages fallback

Anand Baburajanf26cddc7690c
diff --git a/web/apps/space/package.json b/web/apps/space/package.json
index 71181bdd46..bebc174bf7 100644
--- a/web/apps/space/package.json
+++ b/web/apps/space/package.json
@@ -2,6 +2,9 @@
"name": "space",
"version": "0.0.0",
"private": true,
+ "scripts": {
+ "build:post": "rm -f out/404.html"
+ },
"dependencies": {
"@hugeicons/core-free-icons": "^1.1.0",
"@hugeicons/react": "^1.1.4",
diff --git a/web/apps/space/public/_redirects b/web/apps/space/public/_redirects
index 5e3a6617f1..b9313d6f8f 100644
--- a/web/apps/space/public/_redirects
+++ b/web/apps/space/public/_redirects
@@ -1,2 +1,2 @@
-/app/friends/* /app/friends/[spaceId].html 200
+/app/friends/* /app/friends/[spaceId] 200
/* /index.html 200
diff --git a/web/package.json b/web/package.json
index 434601a24c..946c8471d5 100644
--- a/web/package.json
+++ b/web/package.json
@@ -20,7 +20,7 @@
"build:payments": "yarn workspace payments build",
"build:photos": "yarn build:wasm && yarn workspace photos next build",
"build:share": "yarn build:wasm && yarn workspace share next build && yarn workspace share build:post",
- "build:space": "yarn build:wasm && yarn workspace space next build",
+ "build:space": "yarn build:wasm && yarn workspace space next build && yarn workspace space build:post",
"build:twoof3": "yarn workspace twoof3 next build",
"build:wasm": "yarn workspace ente-wasm build --no-pack",
"dev": "yarn dev:photos",