Next.js Discord

Discord Forum

How to get the public dir?

Answered
aa55h posted this in #help-forum
Open in Discord
this works in my local, but when building in gh actions, it doesnt; any idea why?
Answered by Sun bear
You can try

/filename.whatever
View full answer

7 Replies

i just get
@aa55h this works in my local, but when building in gh actions, it doesnt; any idea why?
Sun bear
You can try

/filename.whatever
Answer
@Sun bear You can try `/filename.whatever`
But that wont work in local, will it
it will work
youre not supposed to use ../../public in urls
oh nice
i tried /public/...svg but only /...svg works