diff --git a/.env.example b/.env.example index 977f86544..c8ca8c42f 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,7 @@ PUBLIC_CONSOLE_MODE=self-hosted PUBLIC_CONSOLE_FEATURE_FLAGS= PUBLIC_APPWRITE_MULTI_REGION=false PUBLIC_APPWRITE_ENDPOINT=http://localhost/v1 +PUBLIC_APPWRITE_SITES_BASE_URL=https://stage.appwrite.network PUBLIC_STRIPE_KEY= PUBLIC_GROWTH_ENDPOINT= PUBLIC_CONSOLE_EMAIL_VERIFICATION=false diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 58a4db1be..bc66240f0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,7 @@ env: PUBLIC_APPWRITE_ENDPOINT: http://appwrite.test/v1 PUBLIC_AI_SERVICE_BASE_URL: 'http://appwrite.test/v1' PUBLIC_REALTIME_URI: 'ws://appwrite.test/graphql' - + PUBLIC_APPWRITE_SITES_BASE_URL: 'https://appwrite.network' jobs: build: runs-on: ubuntu-latest diff --git a/playwright.config.ts b/playwright.config.ts index 06ec0dcc0..d3d7902f4 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_APPWRITE_SITES_BASE_URL: 'https://appwrite.network', PUBLIC_REALTIME_URI: 'ws://appwrite.test/v1', PUBLIC_APPWRITE_ENDPOINT: 'https://stage.cloud.appwrite.io/v1', PUBLIC_CONSOLE_MODE: 'cloud', diff --git a/src/lib/studio/studio-widget.ts b/src/lib/studio/studio-widget.ts index d7ffe55b5..caea1039a 100644 --- a/src/lib/studio/studio-widget.ts +++ b/src/lib/studio/studio-widget.ts @@ -302,7 +302,7 @@ export async function initImagine( { AI_SERVICE_ENDPOINT: env.PUBLIC_AI_SERVICE_BASE_URL, APPWRITE_ENDPOINT: env.PUBLIC_APPWRITE_ENDPOINT, - APPWRITE_SITES_BASE_URL: '', + APPWRITE_SITES_BASE_URL: env.PUBLIC_APPWRITE_SITES_BASE_URL, REALTIME_URI: env.PUBLIC_REALTIME_URI }, {