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:
Darius Cepulis
2026-02-19 09:23:46 -06:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 52d20bfca8
commit 10eb92e5ea
6 changed files with 68 additions and 20 deletions
+7 -3
View File
@@ -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
// =============================================================================