Skip to content

Commit 6548698

Browse files
author
Jérôme Deuchnord
committed
Fix the entrypoint missing the path prefix
1 parent ab486e8 commit 6548698

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/vue/utils/fetch.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ export default function (id, options = {}) {
1212
options.headers.set('Content-Type', MIME_TYPE)
1313
}
1414

15-
return fetch(new URL(id, ENTRYPOINT).toString(), options).then((response) => {
15+
let entryPoint = ENTRYPOINT + (!ENTRYPOINT.endsWith('/') ? '/' : '')
16+
17+
console.log(entryPoint)
18+
19+
return fetch(new URL(id, entryPoint), options).then((response) => {
1620
if (response.ok) return response
1721

1822
return response

0 commit comments

Comments
 (0)