#fix `import` mayhem

6 messages · Page 1 of 1 (latest)

brittle basalt
#

I have 30+ gifs in the assets folder to pick only one of them randomly and show as logo of the site.

It may look fun, but I have to manually keep track of the files names and import them in the component one by one. Can I avoid static imports so as to simplify this process?

timid bronzeBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

subtle cypress
#

Yeah nothing wrong with <img src="/logos/logo1.gif">. I don’t think next/image supports gif

brittle basalt
#

ok, gotta try

#

but they have to be put inside public folder to be accessed, or the src="/src/assets/girls/0.gif" cannot be valid, for these assets to belong on the server

subtle cypress