From 05f59861f7653dfc5f4c6e560958955285fc8e06 Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Fri, 6 Oct 2023 13:38:19 +0200 Subject: [PATCH] ci: fixing netlify test deployment --- .github/workflows/test-edge-function.yml | 2 +- examples/next/with-emailpassword/config/appInfo.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-edge-function.yml b/.github/workflows/test-edge-function.yml index 95dc7d8bb..f16b84c43 100644 --- a/.github/workflows/test-edge-function.yml +++ b/.github/workflows/test-edge-function.yml @@ -16,7 +16,7 @@ jobs: - run: npm install git+https://github.com:supertokens/supertokens-node.git#$GITHUB_SHA - run: npm install - run: npm install mocha@6.1.4 jsdom-global@3.0.2 puppeteer@^11.0.0 isomorphic-fetch@^3.0.0 - - run: netlify deploy --debug --prod --build --json --auth=$NETLIFY_AUTH_TOKEN > deployInfo.json + - run: netlify deploy --build --json --auth=$NETLIFY_AUTH_TOKEN > deployInfo.json - run: cat deployInfo.json - run: | ( \ diff --git a/examples/next/with-emailpassword/config/appInfo.ts b/examples/next/with-emailpassword/config/appInfo.ts index a7ea82b4c..ed09e30c7 100644 --- a/examples/next/with-emailpassword/config/appInfo.ts +++ b/examples/next/with-emailpassword/config/appInfo.ts @@ -3,7 +3,11 @@ const port = process.env.APP_PORT || 3000; const apiBasePath = "/api/auth/"; export const websiteDomain = - process.env.APP_URL || process.env.NEXT_PUBLIC_APP_URL || process.env.URL || `http://localhost:${port}`; + process.env.APP_URL || + process.env.NEXT_PUBLIC_APP_URL || + process.env.DEPLOY_URL || + process.env.URL || + `http://localhost:${port}`; export const appInfo = { appName: "SuperTokens Demo App",