A question about basePath
#61
Replies: 4 comments
-
Surely because you are using the unique repository provided by GitHub 'name.github.io,' that is the reason why it is not necessary to add the 'basepath.' In case you have another different repository, you would need to add to the basepath the name of your repository as @gregrickaby explains. Greetings! |
Beta Was this translation helpful? Give feedback.
-
Thanks for answering, @ChuckmonsterXlx! One small clarification. For For the rest of repos (for example, Correct? |
Beta Was this translation helpful? Give feedback.
-
It's right! |
Beta Was this translation helpful? Give feedback.
-
Thanks again, @ChuckmonsterXlx! |
Beta Was this translation helpful? Give feedback.
-
Hey, @gregrickaby!
First of all, BIG thanks for your detailed instructions and the yml-file. I've been looking for a good starting boilerplate for deploying a Nextjs App via GitHub Pages and finally found it. You've helped me a lot.
Allow me to ask you a question.
I followed your manual in README.md but did not manage to make it. There was something wrong the path to images. Then I started experimenting. Eventually, the following changes worked for me:
next.config.mjs
:src
prop ofImage
.See my working commit
I'm trying to understand how it works, but I cannot get why the method above works for my repo? Maybe they've changed something in the API. Please explain.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions