Skip to content

armgit / ente

Public Imported from GitHub
0

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

Deploy Space web app

Anand Baburajan22edbb6afd2f
diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml
index 12316e04fa..27f9b83450 100644
--- a/.github/workflows/web-deploy.yml
+++ b/.github/workflows/web-deploy.yml
@@ -111,6 +111,13 @@ jobs:
account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+ - name: Deploy space
+ uses: ./.github/actions/deploy-web-app
+ with:
+ app: space
+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+
- name: Deploy memories
uses: ./.github/actions/deploy-web-app
with:
diff --git a/server/config/example.yaml b/server/config/example.yaml
index 365dc4d54f..65fa54380e 100644
--- a/server/config/example.yaml
+++ b/server/config/example.yaml
@@ -69,7 +69,7 @@ apps:
# passkey based 2FA.
accounts: http://localhost:3001
# Set this to the URL where your space web app is running.
- space: http://localhost:3012
+ space: http://localhost:3013
# Set this to the URL where your legacy recovery web app is running.
legacy: http://localhost:3011
diff --git a/web/apps/accounts/src/services/passkey.ts b/web/apps/accounts/src/services/passkey.ts
index dd23b767ec..242821e32a 100644
--- a/web/apps/accounts/src/services/passkey.ts
+++ b/web/apps/accounts/src/services/passkey.ts
@@ -383,6 +383,7 @@ export const shouldRestrictToWhitelistedRedirect = () => {
const _isWhitelistedRedirect = (redirectURL: URL) =>
(isDevBuild && redirectURL.hostname.endsWith("localhost")) ||
+ redirectURL.host === "ente.space" ||
redirectURL.host.endsWith(".ente.com") ||
redirectURL.host.endsWith(".ente.io") ||
redirectURL.host.endsWith(".ente.sh");
diff --git a/web/apps/space/src/components/SpacePageMeta.tsx b/web/apps/space/src/components/SpacePageMeta.tsx
index 29040fb2a4..cde997f9a9 100644
--- a/web/apps/space/src/components/SpacePageMeta.tsx
+++ b/web/apps/space/src/components/SpacePageMeta.tsx
@@ -4,8 +4,8 @@ import { onboardingDescription } from "screens/OnboardingScreen";
const spacePreviewTitle = "Add me on Ente Space";
const previewImages = {
- home: "/images/meta.jpg",
- invite: "/images/meta-invite.jpg",
+ home: "https://ente.space/images/meta.jpg",
+ invite: "https://ente.space/images/meta-invite.jpg",
} as const;
interface SpacePageMetaProps {