Closed xtanion closed 7 months ago
@xtanion I solved this problem removing this part:
- name: Setup Pages
uses: actions/configure-pages@v4
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
This was injecting wrong parameters for this version of Nextjs:
âš Invalid next.config.js options detected:
âš Unrecognized key(s) in object: 'images' at "experimental"
But the next.config.mjs must have: output, images and basePath parameters:
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
images: {
unoptimized: true
},
basePath: "/"
};
export default nextConfig;
Thanks a lot, it is sooooo annoying to have to deal with unsolicited advise from GH with relatively complex workflow with flaws. A bug like a needle in a haystack.
Many thanks!
I tried printing the files/folders after the next build in github actions. I get the following result: