Skip to content

Commit

Permalink
fix: Fix type in the separate container env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Oct 28, 2024
1 parent 4a13c36 commit 4c94b37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 ##############

Expand Down
4 changes: 2 additions & 2 deletions packages/shared/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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,
};
});

Expand Down

0 comments on commit 4c94b37

Please sign in to comment.