File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/core/installMachine/installSteps/vercel Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments