mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(site): use astro:env for server-only environment variables (#574)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
52d20bfca8
commit
10eb92e5ea
@@ -1,9 +1,13 @@
|
||||
import {
|
||||
OAUTH_CLIENT_ID,
|
||||
OAUTH_CLIENT_SECRET,
|
||||
OAUTH_REDIRECT_URI,
|
||||
OAUTH_URL,
|
||||
SESSION_COOKIE_PASSWORD,
|
||||
} from 'astro:env/server';
|
||||
import { sealData, unsealData } from 'iron-session';
|
||||
import { createRemoteJWKSet } from 'jose';
|
||||
|
||||
const { OAUTH_URL, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_REDIRECT_URI, SESSION_COOKIE_PASSWORD } = import.meta
|
||||
.env;
|
||||
|
||||
// =============================================================================
|
||||
// Types
|
||||
// =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user