Replies: 2 comments 2 replies
-
@MrMirfan You mean here https://github.com/gregrickaby/nextjs-github-pages/blob/main/app/page.tsx#L20 ? So, instead of I am facing an issue where images public images doesn't load, https://realchakrawarti.github.io/aham/. Link to the repo: https://github.com/realChakrawarti/aham |
Beta Was this translation helpful? Give feedback.
1 reply
-
The solution with "./" works. I guess "/" will start from root, while "./" will start from your basePath. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Instead of Adding BasePath like this
src="/nextjs-github-pages/vercel.svg"
We can prepend the src with . and it works on Both Local and Prod
src="./profile/passport.avif"
Beta Was this translation helpful? Give feedback.
All reactions