actions / starter-workflows

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

Update nextjs.yml #2354

Closed AndryGabry01 closed 3 months ago

AndryGabry01 commented 3 months ago

npm export command has been deprecated insert ' output: "export," ' within nextConfig={} in the file next.config.mjs

./next.config.mjs

/* @type {import('next').NextConfig} / const nextConfig = { output: "export", };

export default nextConfig;

Pre-requisites


Please note that at this time we are only accepting new starter workflows for Code Scanning. Updates to existing starter workflows are fine.


Tasks

For all workflows, the workflow:

For CI workflows, the workflow:

For Code Scanning workflows, the workflow:

Some general notes:

JamesMGreene commented 3 months ago

@AndryGabry01 Thank you for the PR!

This should be resolved now if you upgrade to the latest actions/configure-pages@v5, or create a new Next.js starter workflow using our updated template. 🚀