From 97df2e64a53e2e7828b809b885df61efe01ef402 Mon Sep 17 00:00:00 2001 From: Bastiaan Date: Sun, 11 Jan 2026 09:44:27 +0100 Subject: [PATCH] fix: updated env var prefix --- Dockerfile | 2 +- src/data.functions/feedback.service.ts | 2 +- src/data.functions/mailing-list.service.ts | 4 ++-- src/virtual.d.ts | 7 +++---- vite.config.ts | 1 + 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 561214b..32e0737 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ FROM docker.io/denoland/deno:alpine-${DENO_VERSION} WORKDIR /app COPY --from=build /build/.output . -ENV LISTMONK_API_LOGIN=later +ENV LATER_LISTMONK_API_LOGIN=later EXPOSE 3000 VOLUME /data diff --git a/src/data.functions/feedback.service.ts b/src/data.functions/feedback.service.ts index b94572b..5bf6201 100644 --- a/src/data.functions/feedback.service.ts +++ b/src/data.functions/feedback.service.ts @@ -7,7 +7,7 @@ const appTag = "app-later"; const fider = createServerOnlyFn(() => { return createFiderClient({ baseUri: "https://feedback.strooware.nl", - token: import.meta.env.FIDER_API_TOKEN, + token: import.meta.env.LATER_FIDER_API_TOKEN, }); }); diff --git a/src/data.functions/mailing-list.service.ts b/src/data.functions/mailing-list.service.ts index 00b6977..d828405 100644 --- a/src/data.functions/mailing-list.service.ts +++ b/src/data.functions/mailing-list.service.ts @@ -6,8 +6,8 @@ import { getUserMiddleware, updateUser } from "./user.service.ts"; const listmonk = createServerOnlyFn(() => { return createListmonkClient({ baseUri: "https://lists.strooware.nl", - token: import.meta.env.LISTMONK_API_TOKEN, - login: import.meta.env.LISTMONK_API_LOGIN, + token: import.meta.env.LATER_LISTMONK_API_TOKEN, + login: import.meta.env.LATER_LISTMONK_API_LOGIN, }); }); diff --git a/src/virtual.d.ts b/src/virtual.d.ts index 5151b62..279d7b8 100644 --- a/src/virtual.d.ts +++ b/src/virtual.d.ts @@ -9,10 +9,9 @@ interface ImportMetaEnv { readonly DEV: boolean; readonly SSR: boolean; - readonly SENTRY_TOKEN: string; - readonly FIDER_API_TOKEN: string; - readonly LISTMONK_API_TOKEN: string; - readonly LISTMONK_API_LOGIN: string; + readonly LATER_FIDER_API_TOKEN: string; + readonly LATER_LISTMONK_API_TOKEN: string; + readonly LATER_LISTMONK_API_LOGIN: string; } interface ImportMeta { diff --git a/vite.config.ts b/vite.config.ts index e18fff9..ee8b9b6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,6 +10,7 @@ import solid from "vite-plugin-solid"; export default defineConfig({ build: { sourcemap: true }, server: { port: 3000 }, + envPrefix: "LATER_", plugins: [ deno(), -- 2.51.2