#Static image is not loading

32 messages · Page 1 of 1 (latest)

woven ivy
#
<Link href="/">
                    <Image
                        src="/logo.png"
                        width={115}
                        height={43}
                        alt="Reef Trader"
                    />
                </Link>
tardy isleBOT
#

🔎 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)

rich hound
woven ivy
rich hound
#

and if you manually go to logo.png, is there an error that is displayed

#

or just when imported

woven ivy
#

Only when imported

rich hound
#

i mean in test in browser

woven ivy
#

Would that just be port/logo.png? 404

rich hound
#

do you have basepaths enabled?

#

as next/image doesn't respect them 😭

#

and otherwise, why ere you /logo.png in code nut port/logo.png there?

woven ivy
#

I do not have basepaths enabled

rich hound
#

so why did you mention port then?

woven ivy
#

localhost:3000 is the test url in browser

#

So I was asking if to test for the image in browser if I would type "localhost:3000/logo.png"

rich hound
#

ohh yeah

woven ivy
#

yeah returns a 404

rich hound
#

and you are sure that the file is in the public folder and nothing else (and in the first layer, not any sub paths)

woven ivy
rich hound
#

and do those other public files work?

#

ahh that doesn't matter because:

woven ivy
#

the other files are not working

rich hound
#

move the public folder to the same folder as next.config.js

#

and it should work

woven ivy
#

Working 🙂

#

Thank you for your help

rich hound
# tardy isle

@woven ivy can you mark it as solved, so to tell others you have fixed this issue 🙂

#

you have to use the command, as the image shows