Skip to content

Commit

Permalink
fix: vercel 403
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Jan 28, 2024
1 parent 38a9bdf commit 45bf2ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .env.production
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions app/api/[...slug]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@ export async function GET(req: Request) {
);
}
}

module.exports = {
trailingSlash: true,
};

0 comments on commit 45bf2ae

Please sign in to comment.