Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97e7c44

Browse files
committed
chore: use constant for deploy alias
1 parent 9dcb046 commit 97e7c44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/utils/create-e2e-fixture.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { setNextVersionInFixture } from './next-version-helpers.mjs'
1515
const DEFAULT_SITE_ID = 'ee859ce9-44a7-46be-830b-ead85e445e53'
1616
export const SITE_ID = process.env.NETLIFY_SITE_ID ?? DEFAULT_SITE_ID
1717
const NEXT_VERSION = process.env.NEXT_VERSION || 'latest'
18+
const NETLIFY_DEPLOY_ALIAS = 'next-e2e-tests'
1819

1920
export interface DeployResult {
2021
deployID: string
@@ -268,7 +269,7 @@ async function deploySite(
268269
console.log(`🚀 Building and deploying site...`)
269270

270271
const outputFile = 'deploy-output.txt'
271-
let cmd = `npx netlify deploy --build --site ${siteId} --alias next-e2e-tests`
272+
let cmd = `npx netlify deploy --build --site ${siteId} --alias ${NETLIFY_DEPLOY_ALIAS}`
272273

273274
if (packagePath) {
274275
cmd += ` --filter ${packagePath}`

0 commit comments

Comments
 (0)