Closed miguelrk closed 8 months ago
Follow-up of https://github.com/netzo/netzo/pull/136.
Subhosting somehow fails when operating with and/or importing from file:// URLs. For instance, deploying the following one-file project
file://
// main.ts const contents = await Deno.readTextFile("<FILE_URL>"); Deno.serve(() => new Response(contents));
fails/works for the following values in place of <FILE_URL> after running netzo deploy:
<FILE_URL>
netzo deploy
❌ file:///src/main.ts ❌ file:///src/main.ts ✅ /src/main.ts ✅ main.ts
file:///src/main.ts
/src/main.ts
main.ts
causing the unocss plugin to also fail due to the same reasons. This PR removes the file:// prefix from unocss's configURL and should fix deployment errors.
unocss
configURL
Follow-up of https://github.com/netzo/netzo/pull/136.
Subhosting somehow fails when operating with and/or importing from
file://
URLs. For instance, deploying the following one-file projectfails/works for the following values in place of
<FILE_URL>
after runningnetzo deploy
:❌
file:///src/main.ts
❌file:///src/main.ts
✅/src/main.ts
✅main.ts
causing the
unocss
plugin to also fail due to the same reasons. This PR removes thefile://
prefix from unocss'sconfigURL
and should fix deployment errors.