Skip to content

Commit

Permalink
prepend basepath if any
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojude committed Jan 6, 2025
1 parent 0551fde commit 770184a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function ErrorFeedback({ errorCode }: ErrorFeedbackProps) {
async (wasHelpful: boolean) => {
try {
const response = await fetch(
`/__nextjs_error_feedback?errorCode=${errorCode}&wasHelpful=${wasHelpful}`
`${process.env.__NEXT_ROUTER_BASEPATH || ''}/__nextjs_error_feedback?errorCode=${errorCode}&wasHelpful=${wasHelpful}`
)

if (!response.ok) {
Expand Down

0 comments on commit 770184a

Please sign in to comment.