nitro
nitro copied to clipboard
readAsset build error
https://github.com/nitrojs/nitro/blob/8c2a2d8589a1c65b091f8bce1ca25d756f25bb11/src/build/plugins/public-assets.ts#L78C1-L79C1
This is the code that I actually compiled
function readAsset (id) {
const serverDir = dirname(fileURLToPath(import.meta.url));
return promises.readFile(resolve$1(serverDir, assets[id].path))
}
the global variable was not referenced, so the _nuxt file could not be found
my env node v22.15.1
Please provide a minimal reproduction (e.g., Stackblitz or a Github repo) so we can debug 🙏