Unverified Commit a0b5d9ad authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix reset-project script for E2E deploy tests (#89693)

Our reset script was failing from invalid body shape: 

```sh
Error: Create project failed. Got status: 400, {"error":{"code":"bad_request","message":"Invalid request: should NOT have additional property `env`."}}
```

x-ref:
https://github.com/vercel/next.js/actions/runs/21793009770/job/62875798461
x-ref:
https://github.com/vercel/next.js/actions/runs/21807482052/attempts/1
parent 3f804193
...@@ -97,10 +97,11 @@ export async function resetProject({ ...@@ -97,10 +97,11 @@ export async function resetProject({
resourceConfig: { resourceConfig: {
buildMachineType: 'enhanced', buildMachineType: 'enhanced',
}, },
env: [ environmentVariables: [
{ {
key: 'VERCEL_FORCE_NO_BUILD_CACHE_UPLOAD', key: 'VERCEL_FORCE_NO_BUILD_CACHE_UPLOAD',
value: '1', value: '1',
type: 'plain',
target: ['production', 'preview', 'development'], target: ['production', 'preview', 'development'],
}, },
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment