Next.js Discord

Discord Forum

Turbopack Fetch Using Relative Path URLs In Web Workers

Unanswered
Raymond posted this in #help-forum
Open in Discord
With webpack it was possible to use relative path URLs for fetch

fetch("/api/...")

With turbopack, it requires the full domain prepended to execute the fetch call.

Is there a flag in turbbopack to re-enable the prior behavior?

0 Replies