This commit is contained in:
Okechi Jones-Williams
2026-04-02 16:58:26 +01:00
parent 9571d9b0cd
commit 42d28da299
2 changed files with 10 additions and 5 deletions

View File

@@ -16,4 +16,7 @@ NEXT_PUBLIC_FIREBASE_EMULATOR=true
NODE_ENV=test
PORT=8088
ENVIRONMENT=DEV
ENVIRONMENT=DEV
# Playwright
DIRECT_SUPABASE_SETUP_IN_PLAYWRIGHT=true

View File

@@ -25,10 +25,12 @@ function getSupabaseEnv() {
}
}
const supabaseEnv = getSupabaseEnv()
// Inject into process.env so Playwright and your app code can read them
// Object.assign(process.env, supabaseEnv)
if (process.env.DIRECT_SUPABASE_SETUP_IN_PLAYWRIGHT !== 'true') {
const supabaseEnv = getSupabaseEnv()
// Inject into process.env so Playwright and your app code can read them
Object.assign(process.env, supabaseEnv)
}
export default defineConfig({
testDir: './tests/e2e',