mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-28 11:39:23 +08:00
feat: support https_proxy for standalone mode
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { createParser } from "eventsource-parser";
|
||||
import { NextRequest } from "next/server";
|
||||
import { requestOpenai } from "../common";
|
||||
import { PageConfig } from "next/types";
|
||||
|
||||
async function createStream(req: NextRequest) {
|
||||
const encoder = new TextEncoder();
|
||||
@@ -56,6 +57,6 @@ export async function POST(req: NextRequest) {
|
||||
}
|
||||
}
|
||||
|
||||
export const config = {
|
||||
runtime: "edge",
|
||||
export const config: PageConfig = {
|
||||
runtime: process.env.STANDALONE ? "nodejs" : "edge",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user