This commit is contained in:
hailin 2025-05-21 12:07:24 +08:00
parent 82c96338f7
commit 6f7ffdc374
2 changed files with 9 additions and 4 deletions

View File

@ -1,11 +1,17 @@
/* eslint-disable @next/next/no-sync-scripts */ /*
eslint-disable @next/next/no-sync-scripts
/env.js window.RUNTIME_ENV
Supabase React
*/
import { Html, Head, Main, NextScript } from "next/document" import { Html, Head, Main, NextScript } from "next/document"
export default function Document() { export default function Document() {
return ( return (
<Html lang="en"> <Html lang="en">
<Head> <Head>
<script src="/env.js" /> <script src="/env.js" async />
</Head> </Head>
<body> <body>
<Main /> <Main />

View File

@ -1,4 +1,3 @@
window.RUNTIME_ENV = { window.RUNTIME_ENV = {
SUPABASE_URL: "${SUPABASE_URL}", SUPABASE_URL: "${SUPABASE_URL}"
OLLAMA_URL: "${OLLAMA_URL}"
}; };