Skip to content

Instantly share code, notes, and snippets.

@szymonkorytnicki
Created November 8, 2022 07:43
Show Gist options
  • Save szymonkorytnicki/afb41c7d211cbef1ce4e709c4e63ce4d to your computer and use it in GitHub Desktop.
Save szymonkorytnicki/afb41c7d211cbef1ce4e709c4e63ce4d to your computer and use it in GitHub Desktop.
const { origin } = request.nextUrl.clone();
fetch(origin + '/api/myAPI', {
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment