Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nitro publicAssets 404 #1363

Open
woldtwerk opened this issue May 16, 2024 · 0 comments
Open

Nitro publicAssets 404 #1363

woldtwerk opened this issue May 16, 2024 · 0 comments

Comments

@woldtwerk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant