forked from XiaoMo/ChatGPT-Next-Web
fix: proxy api request
This commit is contained in:
parent
fce3b3ce7b
commit
eec1dd6448
@ -15,8 +15,11 @@ declare global {
|
||||
type DangerConfig = typeof DANGER_CONFIG;
|
||||
}
|
||||
|
||||
export async function POST() {
|
||||
async function handle() {
|
||||
return NextResponse.json(DANGER_CONFIG);
|
||||
}
|
||||
|
||||
export const GET = handle;
|
||||
export const POST = handle;
|
||||
|
||||
export const runtime = "edge";
|
||||
|
@ -16,7 +16,9 @@ const nextConfig = {
|
||||
});
|
||||
}
|
||||
|
||||
return ret;
|
||||
return {
|
||||
afterFiles: ret,
|
||||
};
|
||||
},
|
||||
webpack(config) {
|
||||
config.module.rules.push({
|
||||
|
Loading…
Reference in New Issue
Block a user