File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
app/[locale]/(app)/(dashboard)/[orgId]/settings/trust-portal Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -113,31 +113,31 @@ export const checkDnsRecordAction = authActionClient
113113 } ;
114114 }
115115
116- if ( ! env . VERCEL_PROJECT_ID ) {
116+ if ( ! env . TRUST_PORTAL_PROJECT_ID ) {
117117 return {
118118 success : false ,
119119 error : "Vercel project ID is not set." ,
120120 } ;
121121 }
122122
123123 const isExistingRecord = await vercel . projects . getProjectDomains ( {
124- idOrName : env . VERCEL_PROJECT_ID ,
124+ idOrName : env . TRUST_PORTAL_PROJECT_ID ,
125125 teamId : env . VERCEL_TEAM_ID ,
126126 } ) ;
127127
128128 if ( isExistingRecord . domains . some ( ( record ) => record . name === domain ) ) {
129129 await vercel . projects . removeProjectDomain ( {
130- idOrName : env . VERCEL_PROJECT_ID ,
130+ idOrName : env . TRUST_PORTAL_PROJECT_ID ,
131131 teamId : env . VERCEL_TEAM_ID ,
132132 domain,
133133 } ) ;
134134 }
135135
136136 const addDomainToProject = await vercel . projects
137137 . addProjectDomain ( {
138- idOrName : env . VERCEL_PROJECT_ID ,
138+ idOrName : env . TRUST_PORTAL_PROJECT_ID ,
139139 teamId : env . VERCEL_TEAM_ID ,
140- slug : env . VERCEL_PROJECT_ID ,
140+ slug : env . TRUST_PORTAL_PROJECT_ID ,
141141 requestBody : {
142142 name : domain ,
143143 } ,
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ export function TrustPortalDomain({
272272 < td >
273273 < div className = "flex items-center justify-between gap-2" >
274274 < span className = "min-w-0 break-words" >
275- compai-domain-verification= { orgId }
275+ @
276276 </ span >
277277 < Button
278278 variant = "ghost"
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export const env = createEnv({
2323 VERCEL_ACCESS_TOKEN : z . string ( ) . optional ( ) ,
2424 VERCEL_TEAM_ID : z . string ( ) . optional ( ) ,
2525 VERCEL_PROJECT_ID : z . string ( ) . optional ( ) ,
26+ TRUST_PORTAL_PROJECT_ID : z . string ( ) . optional ( ) ,
2627 NODE_ENV : z . string ( ) . optional ( ) ,
2728 AWS_ACCESS_KEY_ID : z . string ( ) . optional ( ) ,
2829 AWS_SECRET_ACCESS_KEY : z . string ( ) . optional ( ) ,
@@ -65,6 +66,7 @@ export const env = createEnv({
6566 VERCEL_ACCESS_TOKEN : process . env . VERCEL_ACCESS_TOKEN ,
6667 VERCEL_TEAM_ID : process . env . VERCEL_TEAM_ID ,
6768 VERCEL_PROJECT_ID : process . env . VERCEL_PROJECT_ID ,
69+ TRUST_PORTAL_PROJECT_ID : process . env . TRUST_PORTAL_PROJECT_ID ,
6870 NEXT_PUBLIC_VERCEL_URL : process . env . NEXT_PUBLIC_VERCEL_URL ,
6971 NEXT_PUBLIC_NOVU_IDENTIFIER : process . env . NEXT_PUBLIC_NOVU_IDENTIFIER ,
7072 NODE_ENV : process . env . NODE_ENV ,
You can’t perform that action at this time.
0 commit comments