ci: cypres test setup(#274)

* fix: font size broken

* add first cypress test

* save onboarding language

* load language

* get first test to work

* update command

* install pnpm

* update workflow

* install

* update

* test

* increase timeout

* another update

* update 2

* update 3

* upsdada 4

* sfgsfgf 5

* add def supabase url

* fix supabase issue

* add ci

* fix ci

* update .env.example

* update port

* tired

* prepare

* preview

* this is it

* ?????

* 99999900

* fix log issue

* ci

* nkkh

* =====

* 200000
This commit is contained in:
Rotimi Best
2024-04-20 04:39:16 +01:00
committed by GitHub
parent 4f9844bdd2
commit a95be6d620
19 changed files with 827 additions and 65 deletions
@@ -1,6 +1,6 @@
import { PUBLIC_SUPABASE_URL } from '$env/static/public';
import { PRIVATE_SUPABASE_SERVICE_ROLE } from '$env/static/private';
import { createClient, SupabaseClient } from '@supabase/supabase-js';
import { config } from '$lib/config';
export let supabase: SupabaseClient;
@@ -12,7 +12,7 @@ export let supabase: SupabaseClient;
export const getServerSupabase = () => {
if (supabase) return supabase;
supabase = createClient(PUBLIC_SUPABASE_URL, PRIVATE_SUPABASE_SERVICE_ROLE, {
supabase = createClient(config.supabaseConfig.url, PRIVATE_SUPABASE_SERVICE_ROLE || '', {
auth: {
persistSession: false,
autoRefreshToken: false,
@@ -1,17 +1,10 @@
import { PUBLIC_SUPABASE_ANON_KEY, PUBLIC_SUPABASE_URL } from '$env/static/public';
import { createClient, SupabaseClient } from '@supabase/supabase-js';
import type { ConfigType } from '../types';
import { config } from '$lib/config';
export let supabase: SupabaseClient;
export const getSupabase = (config?: ConfigType) => {
export const getSupabase = () => {
if (supabase) return supabase;
config = {
supabaseConfig: {
url: PUBLIC_SUPABASE_URL || '',
anonKey: PUBLIC_SUPABASE_ANON_KEY || ''
}
};
supabase = createClient(config.supabaseConfig.url, config.supabaseConfig.anonKey);