fix env variables

This commit is contained in:
Emily
2024-07-03 15:58:56 +02:00
parent 5314ba3f89
commit aedabd3b36
5 changed files with 14 additions and 6 deletions

View File

@@ -2,9 +2,9 @@
import { createUserJwt } from '~/server/AuthManager';
import { UserModel } from '@schema/UserSchema';
const { NOAUTH_USER_EMAIL, NOAUTH_USER_NAME, GOOGLE_AUTH_CLIENT_ID } = useRuntimeConfig();
const { NOAUTH_USER_EMAIL, NOAUTH_USER_NAME, public: publicRuntime } = useRuntimeConfig();
const noAuthMode = GOOGLE_AUTH_CLIENT_ID.length == 0;
const noAuthMode = publicRuntime.AUTH_MODE == 'NO_AUTH';
export default defineEventHandler(async event => {