Skip to content

Commit

Permalink
rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
dferber90 committed Feb 28, 2025
1 parent e1ea249 commit efd0c9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/shirt-shop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"build": "next build",
"dev": "next dev",
"lint": "next lint",
"replace-workspace-version": "node scripts/replace-workspace-version.mjs",
"start": "next start"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions examples/shirt-shop/scripts/replace-workspace-version.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import fs from 'fs/promises';

async function prepareTemplate() {
// Skip when not used as a template
if (process.env.VERCEL_PROJECT_ID === 'prj_6Km3AvCCo0QgJSoEb3cFQwwB9x0Y') {
if (
process.env.CI === '1' &&
process.env.VERCEL_PROJECT_ID === 'prj_6Km3AvCCo0QgJSoEb3cFQwwB9x0Y'
) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/shirt-shop/vercel.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"installCommand": "pnpm install"
"installCommand": "pnpm replace-workspace-version && pnpm install"
}

0 comments on commit efd0c9f

Please sign in to comment.