starter-workflows icon indicating copy to clipboard operation
starter-workflows copied to clipboard

Updating nextjs.yml for Next.js 14 Support

Open NPJigaK opened this issue 2 years ago • 1 comments

PR Description

Overview

https://nextjs.org/blog/next-14#other-changes

[Breaking] next export command is deprecated in favor of output: 'export' (Docs)

This pull request tackles a major alteration incorporated in Next.js 14— the deprecation of the next export command, now supplanted by output: 'export' as delineated in the Next.js documentation. By amending our codebase in alignment with this new provision, we're ensuring seamless compatibility moving forward.

Background

The advent of Next.js 14 has ushered in a paradigm shift towards a more coherent and intuitive configuration ethos. A testament to this is the modification in the export functionality configuration, transitioning from next export to output: 'export', showcasing the framework's evolutionary trajectory.

We're thankful for your meticulous review and comprehension.

NPJigaK avatar Oct 27 '23 02:10 NPJigaK

hi, i had similar problem with publishing Next.14 and led me to here.

since Next.14 officially uses node version to 18.17 as minimum(Next.14 update), i thought maybe it would be great to update node version to 18 at yml here

071yoon avatar Nov 20 '23 03:11 071yoon

Thank you @NPJigaK for the PR!

alexisabril avatar Mar 25 '24 23:03 alexisabril

ℹ️ FWIW, this change alone wasn't really a proper fix as actions/configure-pages@v4 wasn't compatible with Next.js >= 14. 😕

This should be resolved now if you create a new Next.js starter workflow using our updated template as it included a newly minted actions/configure-pages@v5 that offers better static site generator configuration support for Next.js >= 13.3.0.

JamesMGreene avatar Mar 30 '24 01:03 JamesMGreene