* a new hope * run tests in ci against cli mode * summary * try vercel action to run e2e against studio self hosted preview * believe * debug * gh pages artifact * test * rm pages step * fix automation bypass missing * continue on error * only install necessary deps for CI * fix bypass * remove * fail job if test fails * disable customer query if is_platform false * vercel check * fix var name, make comment update instead * check bypass on runtime * add env var * fix tests going to project ref instead of default * fix * better dates in comment * Update E2E test workflow to include flaky test detection and improve summary output * fix * fix dumb mistake
22 lines
734 B
TypeScript
22 lines
734 B
TypeScript
import path from 'path'
|
|
|
|
const toBoolean = (value?: string) => {
|
|
if (value == null) return false
|
|
const normalized = value.trim().toLowerCase()
|
|
return normalized === 'true'
|
|
}
|
|
|
|
export const env = {
|
|
STUDIO_URL: process.env.STUDIO_URL,
|
|
API_URL: process.env.API_URL || 'https://api.supabase.green',
|
|
AUTHENTICATION: toBoolean(process.env.AUTHENTICATION),
|
|
EMAIL: process.env.EMAIL,
|
|
PASSWORD: process.env.PASSWORD,
|
|
PROJECT_REF: process.env.PROJECT_REF || 'default',
|
|
IS_PLATFORM: process.env.IS_PLATFORM || 'false',
|
|
VERCEL_AUTOMATION_BYPASS_SELFHOSTED_STUDIO:
|
|
process.env.VERCEL_AUTOMATION_BYPASS_SELFHOSTED_STUDIO || 'false',
|
|
}
|
|
|
|
export const STORAGE_STATE_PATH = path.join(__dirname, './playwright/.auth/user.json')
|