From fc9f0e2c2a187041a320fe1679a55ad37943d30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CA=80=E1=B4=80=CA=8F?= Date: Mon, 5 Dec 2022 18:07:43 +0800 Subject: [PATCH] fix(deno): implement readAsset (#694) --- src/rollup/plugins/public-assets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rollup/plugins/public-assets.ts b/src/rollup/plugins/public-assets.ts index 74c5e0f9e1..2ee471e83e 100644 --- a/src/rollup/plugins/public-assets.ts +++ b/src/rollup/plugins/public-assets.ts @@ -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); }` },