mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 07:36:39 +08:00
fixup
This commit is contained in:
parent
344f7bac5c
commit
894cf13ad8
@ -31,7 +31,6 @@ export function middleware(req: NextRequest) {
|
|||||||
// inject api key
|
// inject api key
|
||||||
if (!token) {
|
if (!token) {
|
||||||
const apiKey = process.env.OPENAI_API_KEY;
|
const apiKey = process.env.OPENAI_API_KEY;
|
||||||
console.log("apiKey", apiKey);
|
|
||||||
if (apiKey) {
|
if (apiKey) {
|
||||||
req.headers.set("token", apiKey);
|
req.headers.set("token", apiKey);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user