Skip to content

Commit

Permalink
domain
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Jul 2, 2024
1 parent 05cee3d commit 8e3b6f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stacks/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ export function Web({ stack, app }: StackContext) {
},
})

let webDomain = nextjsApp.customDomainUrl || nextjsApp.url || 'unknown'
webDomain = webDomain.replace('https://', '').replace('http://', '')

stack.addOutputs({
WebURL: nextjsApp.customDomainUrl || nextjsApp.url || 'unknown',
WEB_URL: nextjsApp.customDomainUrl || nextjsApp.url || 'unknown',
WEB_DOMAIN: webDomain,
})
}

0 comments on commit 8e3b6f0

Please sign in to comment.