From 30bd62bec0d557a4b384b533c56b755af58a47f1 Mon Sep 17 00:00:00 2001 From: so1ve Date: Fri, 25 Nov 2022 20:58:21 +0800 Subject: [PATCH] feat: implement deno assets --- 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); }` },