feat: remove NEXT_PUBLIC env vars from docker build args (#13)

* feat: add next public envs to runtime

* Commit env vars
This commit is contained in:
Henry
2025-06-03 21:25:57 +01:00
committed by GitHub
parent 37d2ebccf7
commit 0b06f80181
19 changed files with 55 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
import { env } from "~/env";
import { env } from "next-runtime-env";
export const formatToArray = (
value: string | string[] | undefined,
@@ -46,5 +46,5 @@ export const formatMemberDisplayName = (
};
export const getAvatarUrl = (key: string) => {
return `${env.NEXT_PUBLIC_STORAGE_URL}/${env.NEXT_PUBLIC_AVATAR_BUCKET_NAME}/${key}`;
return `${env("NEXT_PUBLIC_STORAGE_URL")}/${env("NEXT_PUBLIC_AVATAR_BUCKET_NAME")}/${key}`;
};