diff --git a/client/apps/landing/.env.preview b/client/apps/landing/.env.preview index 11ee75716..68d98a02a 100644 --- a/client/apps/landing/.env.preview +++ b/client/apps/landing/.env.preview @@ -16,6 +16,7 @@ VITE_LORDS_ADDRESS=0x0342ad5cc14002c005a5cedcfce2bd3af98d5e7fb79e9bf949b3a91cf14 VITE_PUBLIC_CHAIN=sepolia +VITE_PUBLIC_SLOT= VITE_PUBLIC_CONSTRUCTION_FLAG=false VITE_PUBLIC_HIDE_THREEJS_MENU=false diff --git a/client/apps/landing/.env.production b/client/apps/landing/.env.production index ea6fbc806..03892ef13 100644 --- a/client/apps/landing/.env.production +++ b/client/apps/landing/.env.production @@ -16,7 +16,7 @@ VITE_REALMS_ADDRESS=0x07ae27a31bb6526e3de9cf02f081f6ce0615ac12a6d7b85ee58b8ad794 VITE_LORDS_ADDRESS=0x0124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49 VITE_PUBLIC_CHAIN=mainnet - +VITE_PUBLIC_SLOT=eternum-prod VITE_PUBLIC_CONSTRUCTION_FLAG=false VITE_PUBLIC_HIDE_THREEJS_MENU=false diff --git a/client/apps/landing/.env.sample b/client/apps/landing/.env.sample index 3937049f5..43bbdd700 100644 --- a/client/apps/landing/.env.sample +++ b/client/apps/landing/.env.sample @@ -15,6 +15,7 @@ VITE_PUBLIC_CHAIN=local VITE_PUBLIC_CONSTRUCTION_FLAG=false VITE_PUBLIC_HIDE_THREEJS_MENU=false +VITE_PUBLIC_SLOT= VITE_PUBLIC_ARK_MARKETPLACE_API=https://abc.com VITE_PUBLIC_IMAGE_CDN_URL=https://abc.com diff --git a/client/apps/landing/.env.sepolia b/client/apps/landing/.env.sepolia index 97225fa46..7c54c18b4 100644 --- a/client/apps/landing/.env.sepolia +++ b/client/apps/landing/.env.sepolia @@ -17,7 +17,7 @@ VITE_REALMS_ADDRESS=0xd2674cc335684896f2b1f942e6929611acab4dc07aa03d0371226812bb VITE_LORDS_ADDRESS=0x342ad5cc14002c005a5cedcfce2bd3af98d5e7fb79e9bf949b3a91cf145d72e VITE_PUBLIC_CHAIN=sepolia - +VITE_PUBLIC_SLOT= VITE_PUBLIC_CONSTRUCTION_FLAG=false VITE_PUBLIC_HIDE_THREEJS_MENU=false diff --git a/client/apps/landing/env.ts b/client/apps/landing/env.ts index cff6063fa..f85a88f74 100644 --- a/client/apps/landing/env.ts +++ b/client/apps/landing/env.ts @@ -33,6 +33,8 @@ const envSchema = z.object({ VITE_PUBLIC_IMAGE_CDN_URL: z.string().url(), VITE_PUBLIC_IMAGE_PROXY_URL: z.string().url(), VITE_PUBLIC_IPFS_GATEWAY: z.string().url(), + + VITE_PUBLIC_SLOT: z.string(), }); let env: z.infer; diff --git a/client/apps/landing/src/components/providers/starknet-provider.tsx b/client/apps/landing/src/components/providers/starknet-provider.tsx index d37158447..9f70a95ee 100644 --- a/client/apps/landing/src/components/providers/starknet-provider.tsx +++ b/client/apps/landing/src/components/providers/starknet-provider.tsx @@ -15,7 +15,7 @@ const otherResources = Object.entries(resourceAddresses) .map(([_, [__, address]]) => address); const theme: string = "eternum"; -const slot: string = "realms-world-04"; +const slot: string = env.VITE_PUBLIC_SLOT; const namespace: string = "eternum"; const colorMode: ColorMode = "dark";