File tree Expand file tree Collapse file tree
infrastructure/control-panel/src/routes/api/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { dev } from '$app/environment' ;
2- import { env } from '$env/dynamic /public' ;
2+ import { PUBLIC_REGISTRY_URL } from '$env/static /public' ;
33import { isAdminEName , normalizeEName } from '$lib/server/auth/allowlist' ;
44import { consumeAuthSession , publishAuthSessionResult } from '$lib/server/auth/sessions' ;
55import { AUTH_COOKIE_NAME , signAuthToken } from '$lib/server/auth/token' ;
@@ -76,7 +76,7 @@ export const POST: RequestHandler = async ({ request, cookies }) => {
7676 }
7777 console . info ( '[auth] Session consumed successfully' , { ename, session : sessionPreview } ) ;
7878
79- const registryBaseUrl = env . PUBLIC_REGISTRY_URL ;
79+ const registryBaseUrl = PUBLIC_REGISTRY_URL ;
8080 if ( ! registryBaseUrl ) {
8181 console . error ( '[auth] Missing PUBLIC_REGISTRY_URL' ) ;
8282 publishAuthSessionResult ( session , {
You can’t perform that action at this time.
0 commit comments