Skip to content

Commit

Permalink
docs(nextjs): adjust script for affected deployments to Vercel (#6894)
Browse files Browse the repository at this point in the history
  • Loading branch information
juristr committed Aug 30, 2021
1 parent bdd01ed commit 0a6434d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/react/guides/deploy-nextjs-to-vercel.md
Expand Up @@ -42,11 +42,14 @@ We are going to achieve this by creating a shell script in our Nx workspace that

# Name of the app to check. Change this to your application name!
APP=tuskdesk

# Determine version of Nx installed
NX_VERSION=$(node -e "console.log(require('./package.json').devDependencies['@nrwl/workspace'])")
TS_VERSION=$(node -e "console.log(require('./package.json').devDependencies['typescript'])")

# Install @nrwl/workspace in order to run the affected command
npm install -D @nrwl/workspace@$NX_VERSION --prefer-offline
npm install -D typescript@$TS_VERSION --prefer-offline

# Run the affected command, comparing latest commit to the one before that
npx nx affected:apps --plain --base HEAD~1 --head HEAD | grep $APP -q
Expand Down

1 comment on commit 0a6434d

@vercel
Copy link

@vercel vercel bot commented on 0a6434d Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.