actions / starter-workflows

Accelerating new GitHub Actions workflows
https://github.com/features/actions
Other
8.67k stars 5.1k forks source link

next.js 14 starter workflow wrong #2258

Open niklasp opened 7 months ago

niklasp commented 7 months ago

the current next.yml errors with next 14, has someone found a workaround?

dninomiya commented 4 months ago

If it is next.config.mjs, change it to next.config.js and update the contents. That solved my case.

sample

codeaid commented 2 months ago

Solution by @dninomiya worked! I spent almost 3 hours after I copy/pasted the workflow file from one project to another mostly identical project being unable to deploy to GitHub pages. Turns out this action does not process the .mjs file correctly. Thanks for posting your reply!