Skip to content

Commit 01985d4

Browse files
committed
cleanup: fix env variables
1 parent b429704 commit 01985d4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ COPY . /code/
2626
# See "schema" field in "./env.ts"
2727
ENV APP_TITLE=BySubina
2828
ENV APP_ENVIRONMENT=development
29-
ENV APP_GRAPHQL_DOMAIN=https://by-subina.com/graphql/
29+
ENV APP_GRAPHQL_DOMAIN=https://by-subina.com
3030
ENV APP_SENTRY_DSN=Dummy
3131

32-
3332
# NOTE: These are set directly in `vite.config.ts`
3433
# We're using raw web-app-serve placeholder values here to treat them as dynamic values
3534
ENV APP_UMAMI_ID=WEB_APP_SERVE_PLACEHOLDER__APP_UMAMI_ID

env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineConfig({
1818
validator: 'builtin',
1919
schema: {
2020
APP_TITLE: Schema.string(),
21-
APP_ENVIRONMENT: (key, value) => {
21+
APP_ENVIRONMENT: (key: string, value: string) => {
2222
// NOTE: APP_ENVIRONMENT_PLACEHOLDER is meant to be used with image builds
2323
// The value will be later replaced with the actual value
2424
const regex = /^production|staging|testing|alpha-\d+|development|APP_ENVIRONMENT_PLACEHOLDER$/;

0 commit comments

Comments
 (0)