fix: move all static env to dynamic

This commit is contained in:
Rotimi Best
2024-09-29 04:49:28 +01:00
parent 73fefddcc3
commit a3d478d313
8 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import { PUBLIC_SUPABASE_ANON_KEY, PUBLIC_SUPABASE_URL } from '$env/static/public';
import { env } from '$env/dynamic/public';
import type { ConfigType } from '$lib/utils/types/config';
export const config: ConfigType = {
supabaseConfig: {
url: PUBLIC_SUPABASE_URL || 'http://localhost:54321',
anonKey: PUBLIC_SUPABASE_ANON_KEY || 'anon-key'
url: env.PUBLIC_SUPABASE_URL || 'http://localhost:54321',
anonKey: env.PUBLIC_SUPABASE_ANON_KEY || 'anon-key'
}
};