image icon indicating copy to clipboard operation
image copied to clipboard

Nitro publicAssets 404

Open woldtwerk opened this issue 9 months ago • 0 comments

When adding public assets to nitro via a hook:

nitroConfig.publicAssets.push({
   dir: resolver.resolve(`${nuxt.options.rootDir}/content/.uploads/media`),
   maxAge: 60 * 60 * 24 * 365,
})

ipx will throw a 404 error. I guess ipx resolves the file directory and doesn't care if the file is reachable under '/'

├─ /ipx//ogimage.jpg (12ms) nitro 10:24:35 AM │ ├── Error: [404] IPX_FILE_NOT_FOUND

My current workaround is to do a symlink instead.

woldtwerk avatar May 16 '24 08:05 woldtwerk