[next] replace next export with output: export in tests (#10756)

`next export` has been deprecated on the latest Next.js canary so these
tests will no longer pass.

This changes it to use `output: export` from `next.config.js` instead.

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
This commit is contained in:
Zack Tanner
2023-10-24 09:41:54 -07:00
committed by GitHub
parent 50791803b6
commit f8320417a8
9 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
---
---

View File

@@ -1,4 +1,5 @@
module.exports = {
output: 'export',
generateBuildId() {
return 'testing-build-id';
},

View File

@@ -1,6 +1,6 @@
{
"scripts": {
"build": "next build && next export"
"build": "next build"
},
"dependencies": {
"next": "canary",

View File

@@ -1,4 +1,5 @@
module.exports = {
output: 'export',
generateBuildId() {
return 'testing-build-id';
},

View File

@@ -1,6 +1,6 @@
{
"scripts": {
"now-build": "next build && next export"
"now-build": "next build"
},
"dependencies": {
"next": "canary",

View File

@@ -1,4 +1,5 @@
module.exports = {
output: 'export',
generateBuildId() {
return 'testing-build-id';
},

View File

@@ -1,6 +1,6 @@
{
"scripts": {
"vercel-build": "next build && next export"
"vercel-build": "next build"
},
"dependencies": {
"next": "canary",

View File

@@ -1,4 +1,5 @@
module.exports = {
output: 'export',
generateBuildId() {
return 'testing-build-id';
},

View File

@@ -1,6 +1,6 @@
{
"scripts": {
"build": "next build && next export"
"build": "next build"
},
"dependencies": {
"next": "canary",