From 0ee997802f4a02e6784a76ea8bf423afc198f2c8 Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Tue, 20 May 2025 17:32:43 -0400 Subject: [PATCH] chore: remove netlify-cli deploy `--build` flag It builds by default since 21.0.0. --- CONTRIBUTING.md | 2 +- tests/netlify-deploy.ts | 2 +- tests/utils/create-e2e-fixture.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e1e5e84440..1779353669 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -103,7 +103,7 @@ following: node_module from the registry) 5. Creating a `netlify.toml` inside the temp directory of the fixture and adding the runtime as a plugin. -6. Running `netlify deploy --build` invoking the runtime. This will use the +6. Running `netlify deploy` invoking the runtime during the build step. This will use the [next-runtime-testing](https://app.netlify.com/sites/next-runtime-testing/overview) as site to deploy to. 7. Using the `deployId` and `url` of the deployed site to run some diff --git a/tests/netlify-deploy.ts b/tests/netlify-deploy.ts index bddec44fd1..7e969d56d8 100644 --- a/tests/netlify-deploy.ts +++ b/tests/netlify-deploy.ts @@ -133,7 +133,7 @@ export class NextDeployInstance extends NextInstance { const deployRes = await execa( 'npx', - ['netlify', 'deploy', '--build', '--message', deployTitle ?? '', '--alias', deployAlias], + ['netlify', 'deploy', '--message', deployTitle ?? '', '--alias', deployAlias], { cwd: this.testDir, reject: false, diff --git a/tests/utils/create-e2e-fixture.ts b/tests/utils/create-e2e-fixture.ts index 5d17341700..3aecd8dcc3 100644 --- a/tests/utils/create-e2e-fixture.ts +++ b/tests/utils/create-e2e-fixture.ts @@ -269,7 +269,7 @@ async function deploySite( console.log(`🚀 Building and deploying site...`) const outputFile = 'deploy-output.txt' - let cmd = `npx netlify deploy --build --site ${siteId} --alias ${NETLIFY_DEPLOY_ALIAS}` + let cmd = `npx netlify deploy --site ${siteId} --alias ${NETLIFY_DEPLOY_ALIAS}` if (packagePath) { cmd += ` --filter ${packagePath}`