File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { env as publicEnv } from "$env/dynamic/public" ;
22import { env as serverEnv } from "$env/dynamic/private" ;
3- import { serverPublicConfig } from "$lib/utils/PublicConfig.svelte" ;
43import { building } from "$app/environment" ;
54import type { Collection } from "mongodb" ;
65import type { ConfigKey as ConfigKeyType } from "$lib/types/ConfigKey" ;
@@ -151,9 +150,7 @@ const configManager = new ConfigManager();
151150
152151export const ready = ( async ( ) => {
153152 if ( ! building ) {
154- await configManager . init ( ) . then ( ( ) => {
155- serverPublicConfig . init ( configManager . getPublicConfig ( ) ) ;
156- } ) ;
153+ await configManager . init ( ) ;
157154 }
158155} ) ( ) ;
159156
Original file line number Diff line number Diff line change @@ -74,5 +74,4 @@ export const publicConfigTransporter: Transporter = {
7474 decode : ( value ) => getConfigManager ( JSON . parse ( value ) ) ,
7575} ;
7676
77- export const serverPublicConfig = getConfigManager ( ) ;
7877export const usePublicConfig = ( ) => getContext < ConfigProxy > ( "publicConfig" ) ;
You can’t perform that action at this time.
0 commit comments