From 4c94b372007b742c016d2e32c7ba5969f9f3c8a1 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Mon, 28 Oct 2024 08:15:05 +0000 Subject: [PATCH] fix: Fix type in the separate container env variable --- docker/Dockerfile | 4 ++-- packages/shared/config.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 44d1a09f..2d9462db 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -111,7 +111,7 @@ FROM aio_builder AS web RUN touch /etc/s6-overlay/s6-rc.d/user/contents.d/init-db-migration \ /etc/s6-overlay/s6-rc.d/user/contents.d/svc-web -ENV USING_LEGACY_SEPARETE_CONTAINERS=true +ENV USING_LEGACY_SEPARATE_CONTAINERS=true HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/api/health || exit 1 @@ -123,7 +123,7 @@ FROM aio_builder AS workers # is done for them. RUN rm /etc/s6-overlay/s6-rc.d/svc-workers/dependencies.d/init-db-migration \ && touch /etc/s6-overlay/s6-rc.d/user/contents.d/svc-workers -ENV USING_LEGACY_SEPARETE_CONTAINERS=true +ENV USING_LEGACY_SEPARATE_CONTAINERS=true ################# The cli ############## diff --git a/packages/shared/config.ts b/packages/shared/config.ts index 35d3df54..6b9b314e 100644 --- a/packages/shared/config.ts +++ b/packages/shared/config.ts @@ -59,7 +59,7 @@ const allEnv = z.object({ DISABLE_NEW_RELEASE_CHECK: stringBool("false"), // A flag to detect if the user is running in the old separete containers setup - USING_LEGACY_SEPARETE_CONTAINERS: stringBool("false"), + USING_LEGACY_SEPARATE_CONTAINERS: stringBool("false"), }); const serverConfigSchema = allEnv.transform((val) => { @@ -127,7 +127,7 @@ const serverConfigSchema = allEnv.transform((val) => { maxAssetSizeMb: val.MAX_ASSET_SIZE_MB, serverVersion: val.SERVER_VERSION, disableNewReleaseCheck: val.DISABLE_NEW_RELEASE_CHECK, - usingLegacySeparateContainers: val.USING_LEGACY_SEPARETE_CONTAINERS, + usingLegacySeparateContainers: val.USING_LEGACY_SEPARATE_CONTAINERS, }; });