diff --git a/apps/dashboard/src/components/env-keys.tsx b/apps/dashboard/src/components/env-keys.tsx index bd861a94c..2a2c3931f 100644 --- a/apps/dashboard/src/components/env-keys.tsx +++ b/apps/dashboard/src/components/env-keys.tsx @@ -8,11 +8,11 @@ function getEnvFileContent(props: { superSecretAdminKey?: string, }) { const envFileContent = Object.entries({ - NEXT_PUBLIC_STACK_API_URL: getPublicEnvVar('NEXT_PUBLIC_STACK_API_URL') === "https://api.hexclave.com" ? undefined : getPublicEnvVar('NEXT_PUBLIC_STACK_API_URL'), - NEXT_PUBLIC_STACK_PROJECT_ID: props.projectId, - NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY: props.publishableClientKey, - STACK_SECRET_SERVER_KEY: props.secretServerKey, - STACK_SUPER_SECRET_ADMIN_KEY: props.superSecretAdminKey, + NEXT_PUBLIC_HEXCLAVE_API_URL: getPublicEnvVar('NEXT_PUBLIC_STACK_API_URL') === "https://api.stack-auth.com" ? undefined : getPublicEnvVar('NEXT_PUBLIC_STACK_API_URL'), + NEXT_PUBLIC_HEXCLAVE_PROJECT_ID: props.projectId, + NEXT_PUBLIC_HEXCLAVE_PUBLISHABLE_CLIENT_KEY: props.publishableClientKey, + HEXCLAVE_SECRET_SERVER_KEY: props.secretServerKey, + HEXCLAVE_SUPER_SECRET_ADMIN_KEY: props.superSecretAdminKey, }) .filter(([k, v]) => v) .map(([k, v]) => `${k}=${v}`) @@ -133,7 +133,7 @@ export function ViteEnvKeys(props: { secretServerKey?: string, }) { const envFileContent = Object.entries({ - VITE_HEXCLAVE_API_URL: getPublicEnvVar('NEXT_PUBLIC_STACK_API_URL') === "https://api.hexclave.com" ? undefined : getPublicEnvVar('NEXT_PUBLIC_STACK_API_URL'), + VITE_HEXCLAVE_API_URL: getPublicEnvVar('NEXT_PUBLIC_STACK_API_URL') === "https://api.stack-auth.com" ? undefined : getPublicEnvVar('NEXT_PUBLIC_STACK_API_URL'), VITE_HEXCLAVE_PROJECT_ID: props.projectId, HEXCLAVE_SECRET_SERVER_KEY: props.secretServerKey, })