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:
@@ -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}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user