mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-26 10:39:21 +08:00
feat: support https_proxy for standalone mode
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { requestOpenai } from "../common";
|
||||
import { PageConfig } from "next/types";
|
||||
|
||||
export const config: PageConfig = {
|
||||
runtime: process.env.STANDALONE ? "nodejs" : "edge",
|
||||
};
|
||||
|
||||
async function makeRequest(req: NextRequest) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user