Skip to content

Commit ea08dd4

Browse files
committed
feat: add PAYLOAD_SECRET to vercel env variables
1 parent e90e3d2 commit ea08dd4

File tree

1 file changed

+6
-1
lines changed
  • packages/core/installMachine/installSteps/vercel

1 file changed

+6
-1
lines changed

packages/core/installMachine/installSteps/vercel/deploy.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ export const deployVercelProject = async () => {
88
});
99

1010
logWithColoredPrefix('vercel', 'Creating production deployment...');
11-
1211
const productionUrl = execSync('vercel --prod', {
1312
stdio: ['inherit', 'pipe', 'inherit'],
1413
encoding: 'utf8',
1514
});
1615

16+
logWithColoredPrefix('vercel', 'Setting up environment variables...');
17+
execSync("grep PAYLOAD_SECRET apps/web/.env | cut -d '=' -f2 | vercel env add PAYLOAD_SECRET production", {
18+
stdio: 'inherit',
19+
encoding: 'utf8',
20+
});
21+
1722
if (productionUrl) {
1823
logWithColoredPrefix('vercel', `You can access your production deployment at: \x1b[36m${productionUrl}\x1b[0m`);
1924
} else {

0 commit comments

Comments
 (0)