diff --git a/src/rollup/plugins/public-assets.ts b/src/rollup/plugins/public-assets.ts index 8a7d2b5565..580b8612ac 100644 --- a/src/rollup/plugins/public-assets.ts +++ b/src/rollup/plugins/public-assets.ts @@ -95,7 +95,7 @@ ${ ? `export * from "#internal/nitro/virtual/public-assets-${ nitro.options.serveStatic === "deno" ? "deno" : "node" }"` - : "export const readAsset = () => Promise(null)" + : "export const readAsset = () => Promise.resolve(null)" } export const publicAssetBases = ${JSON.stringify(publicAssetBases)}