From 4de041327c3e93f55b6f1757af1b05a1ad057894 Mon Sep 17 00:00:00 2001 From: Ariel Weinberger Date: Mon, 5 Jan 2026 19:11:25 -0600 Subject: [PATCH 1/2] feat(profiles): provide api endpoint --- .env.example | 1 + .github/workflows/tests.yml | 1 + package.json | 2 +- playwright.config.ts | 1 + pnpm-lock.yaml | 17 ++++++++++++----- src/lib/studio/studio-widget.ts | 1 + 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index c8ca8c42fd..bd5b4e7f78 100644 --- a/.env.example +++ b/.env.example @@ -9,5 +9,6 @@ PUBLIC_GROWTH_ENDPOINT= PUBLIC_CONSOLE_EMAIL_VERIFICATION=false PUBLIC_CONSOLE_MOCK_AI_SUGGESTIONS=true PUBLIC_AI_SERVICE_BASE_URL= +PUBLIC_API_BASE_URL= PUBLIC_REALTIME_URI=ws://localhost:8891/graphql PUBLIC_IMAGINE_CDN_URL= \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5171904f97..36577b5b9f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,7 @@ env: PUBLIC_CONSOLE_PROFILE: 'default' PUBLIC_APPWRITE_ENDPOINT: http://appwrite.test/v1 PUBLIC_AI_SERVICE_BASE_URL: 'http://appwrite.test/v1' + PUBLIC_API_BASE_URL: 'http://appwrite.test/v1' PUBLIC_REALTIME_URI: 'ws://appwrite.test/graphql' PUBLIC_APPWRITE_SITES_BASE_URL: 'https://appwrite.network' jobs: diff --git a/package.json b/package.json index ec7e175293..2f488e2b66 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "devDependencies": { "@eslint/compat": "^1.4.0", "@eslint/js": "^9.37.0", - "@imagine.dev/web-components": "^0.0.140", + "@imagine.dev/web-components": "https://pkg.vc/-/@appwrite/@imagine.dev/web-components@ad8767ea", "@melt-ui/pp": "^0.3.2", "@melt-ui/svelte": "^0.86.6", "@playwright/test": "^1.56.0", diff --git a/playwright.config.ts b/playwright.config.ts index d3d7902f41..9101c41ae7 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -16,6 +16,7 @@ const config: PlaywrightTestConfig = { NODE_OPTIONS: '--max_old_space_size=8192', PUBLIC_CONSOLE_PROFILE: 'console', PUBLIC_AI_SERVICE_BASE_URL: 'http://appwrite.test/v1', + PUBLIC_API_BASE_URL: 'http://appwrite.test/v1', PUBLIC_APPWRITE_SITES_BASE_URL: 'https://appwrite.network', PUBLIC_REALTIME_URI: 'ws://appwrite.test/v1', PUBLIC_APPWRITE_ENDPOINT: 'https://stage.cloud.appwrite.io/v1', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0cbd49a2ed..980902897f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -109,8 +109,8 @@ importers: specifier: ^9.37.0 version: 9.39.1 '@imagine.dev/web-components': - specifier: ^0.0.140 - version: 0.0.140(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + specifier: https://pkg.vc/-/@appwrite/@imagine.dev/web-components@ad8767ea + version: https://pkg.vc/-/@appwrite/@imagine.dev/web-components@ad8767ea(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@melt-ui/pp': specifier: ^0.3.2 version: 0.3.2(@melt-ui/svelte@0.86.6(svelte@5.45.6))(svelte@5.45.6) @@ -655,8 +655,9 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} - '@imagine.dev/web-components@0.0.140': - resolution: {integrity: sha512-QPgl1uhHw5KBU3pWU6SygMVJ0jXxbpXt0EZ3QoQtXqWh6dBoy4cbhugfuaM6UxMZlNbooR8/SRIZVjFNCayj/A==} + '@imagine.dev/web-components@https://pkg.vc/-/@appwrite/@imagine.dev/web-components@ad8767ea': + resolution: {tarball: https://pkg.vc/-/@appwrite/@imagine.dev/web-components@ad8767ea} + version: 0.0.142 peerDependencies: react: 19.1.0 react-dom: 19.1.0 @@ -2678,6 +2679,9 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + ndjson-readablestream@1.4.0: + resolution: {integrity: sha512-aufwPqwZzsS+NTekCJbHz8kJ6VlyeI8LD7owYSWm3cs4rx3CkY+J+DoD1af/ySLbc4ESJkESgJeMj1V4t3ZYPg==} + node-addon-api@7.1.1: resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} @@ -4041,8 +4045,9 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} - '@imagine.dev/web-components@0.0.140(react-dom@19.2.1(react@19.2.1))(react@19.2.1)': + '@imagine.dev/web-components@https://pkg.vc/-/@appwrite/@imagine.dev/web-components@ad8767ea(react-dom@19.2.1(react@19.2.1))(react@19.2.1)': dependencies: + ndjson-readablestream: 1.4.0 react: 19.2.1 react-dom: 19.2.1(react@19.2.1) @@ -6267,6 +6272,8 @@ snapshots: natural-compare@1.4.0: {} + ndjson-readablestream@1.4.0: {} + node-addon-api@7.1.1: optional: true diff --git a/src/lib/studio/studio-widget.ts b/src/lib/studio/studio-widget.ts index 5c85cbae43..1afa160436 100644 --- a/src/lib/studio/studio-widget.ts +++ b/src/lib/studio/studio-widget.ts @@ -312,6 +312,7 @@ export async function initImagine( initImagineConfig( { AI_SERVICE_ENDPOINT: env.PUBLIC_AI_SERVICE_BASE_URL, + API_ENDPOINT: env.PUBLIC_API_BASE_URL, APPWRITE_ENDPOINT: env.PUBLIC_APPWRITE_ENDPOINT, APPWRITE_SITES_BASE_URL: env.PUBLIC_APPWRITE_SITES_BASE_URL, REALTIME_URI: env.PUBLIC_REALTIME_URI From e56115f7a9e9884156b9f408e0a1b7eaa9c3afb5 Mon Sep 17 00:00:00 2001 From: Ariel Weinberger Date: Mon, 5 Jan 2026 19:34:55 -0600 Subject: [PATCH 2/2] feat: add api base url var --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 200545863e..df0e38f068 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ ARG PUBLIC_IMAGINE_CDN_URL ARG PUBLIC_CONSOLE_MODE ARG PUBLIC_CONSOLE_PROFILE ARG PUBLIC_AI_SERVICE_BASE_URL +ARG PUBLIC_API_BASE_URL ARG PUBLIC_REALTIME_URI ARG PUBLIC_CONSOLE_FEATURE_FLAGS ARG PUBLIC_APPWRITE_MULTI_REGION