fix: #1954 lazy render bugs

This commit is contained in:
Yidadaa
2023-06-15 01:34:21 +08:00
parent 0fb775d71a
commit 184a0b9481
8 changed files with 318 additions and 40 deletions

View File

@@ -2,7 +2,6 @@ import { NextRequest } from "next/server";
import { getServerSideConfig } from "../config/server";
import md5 from "spark-md5";
import { ACCESS_CODE_PREFIX } from "../constant";
import { OPENAI_URL } from "./common";
function getIP(req: NextRequest) {
let ip = req.ip ?? req.headers.get("x-real-ip");