Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): check that baseURL is not set in $fetch onRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Araneline committed Oct 14, 2022
1 parent 884b772 commit 62a70a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (!globalThis.$fetch) {
onRequest ({ request, options }) {
if (/^https?:\/\//gm.test(<string>request) && !options.baseURL) {
options.baseURL = ''
} else {
} else if (!options.baseURL) {
options.baseURL = baseURL()
}
}
Expand Down

0 comments on commit 62a70a1

Please sign in to comment.