netzo / fresh-netzo

Full-stack Deno Fresh meta-framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
https://netzo.io
MIT License
51 stars 3 forks source link

fix(plugins/unocss): should fix deployment issues due to failing resolution for `unocss` plugin imports #139

Closed miguelrk closed 8 months ago

miguelrk commented 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

// 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:///src/main.tsfile:///src/main.ts/src/main.tsmain.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.