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:
/** @type {import('next').NextConfig} */
const nextConfig = {
//...
basePath: "", // just empty string, but not the repo name
//...
};
export default nextConfig;
- Not applying any changes to the
src prop of Image.
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!
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:srcprop 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!