diff --git a/.env.production b/.env.production index e41884ef..471a4f7e 100644 --- a/.env.production +++ b/.env.production @@ -1,9 +1,5 @@ -# Update these with your Supabase details from your project settings > API -# https://app.supabase.com/project/_/settings/api NEXT_PUBLIC_AI_URL=/api/v1/chat/completions NEXT_PUBLIC_OPENAI_API_KEY=sess-L6DwIB7N859iQLWfNBTaPsmkErqZrjoXVk6m7BmA NEXT_PUBLIC_PAPER_URL=/api/paper NEXT_PUBLIC_SEMANTIC_API_KEY=hEQvK6ARe84dzDPcMnpzX4n9jfoqztkMfaftPWnb NEXT_PUBLIC_PUBMED_API_KEY=057616e7ce6c722f2ae8679e38a8be9b1a09 -#"https://api.openai.com/v1/chat/completions" "https://chatgpt-api-proxy-private.14790897abc.workers.dev/v1/chat/completions" -#node转发设置为 /api/proxy/v1/chat/completions \ No newline at end of file diff --git a/app/api/[...slug]/route.ts b/app/api/[...slug]/route.ts index 3c951e41..94ef2da2 100644 --- a/app/api/[...slug]/route.ts +++ b/app/api/[...slug]/route.ts @@ -113,3 +113,7 @@ export async function GET(req: Request) { ); } } + +module.exports = { + trailingSlash: true, +};