Skip to content

Commit

Permalink
feat: proxy neynar api requests (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny authored Oct 8, 2024
1 parent 5fa402d commit bab5607
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ const nextConfig = {
source: "/api/bugsnag/sessions",
destination: "https://sessions.bugsnag.com",
},
{
source: "/api/neynar/:path*",
destination: "https://api.neynar.com/v2/farcaster/:path*"
}
],
fallback: [],
}
Expand Down
2 changes: 1 addition & 1 deletion src/v2/hooks/useFarcasterAPI/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const NEYNAR_BASE_URL = "https://api.neynar.com/v2/farcaster" as const
export const NEYNAR_BASE_URL = "/api/neynar" as const
export const NEYNAR_DEFAULT_HEADERS = {
api_key: "NEYNAR_API_DOCS",
} as const

0 comments on commit bab5607

Please sign in to comment.