Next.js Discord

Discord Forum

Vercel file path dictionary

Unanswered
Tomistoma posted this in #help-forum
Open in Discord
Original message was deleted.

5 Replies

Original message was deleted
static files should be stored in public not src/lib/assets
(assuming nextjs)
i think you'd need a webpack loader for that?
Original message was deleted
you can add a prebuild script to move stuff from src/lib/assets to public, but [why not just save them in public](https://nextjs.org/docs/app/building-your-application/optimizing/static-assets)?
images are a special case since they have default webpack loaders so you can save them anywhere and statically import them like importing js modules