Skip to content

Commit

Permalink
fix(deno): implement readAsset (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve authored Dec 5, 2022
1 parent 44c10fa commit fc9f0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/plugins/public-assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function readAsset (id) {
import assets from '#internal/nitro/virtual/public-assets-data'
export function readAsset (id) {
// https://deno.com/deploy/docs/serve-static-assets
const path = '.' + new URL('../public/test.txt', 'file://').pathname
const path = '.' + new URL(\`../public\${id}\`, 'file://').pathname
return Deno.readFile(path);
}`
},
Expand Down

0 comments on commit fc9f0e2

Please sign in to comment.