Skip to content

Commit

Permalink
fix secondary domains for cert
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-stoker committed Dec 23, 2023
1 parent 1d9d47f commit ed52bee
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stoked-cenv-web",
"version": "2.0.0-a.138",
"version": "2.0.0-a.140",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions example/packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stoked-cenv/web-api",
"version": "2.0.0-a.138",
"version": "2.0.0-a.140",
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
Expand All @@ -17,8 +17,8 @@
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^10.1.3",
"@nestjs/platform-express": "^10.1.3",
"@stoked-cenv/cdk": "^2.0.0-a.138",
"@stoked-cenv/lib": "^2.0.0-a.138",
"@stoked-cenv/cdk": "^2.0.0-a.140",
"@stoked-cenv/lib": "^2.0.0-a.140",
"express-oauth2-jwt-bearer": "^1.5.0",
"helmet": "^6.2.0",
"nocache": "^3.0.4",
Expand Down
2 changes: 1 addition & 1 deletion example/packages/globals/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stoked-cenv/globals",
"version": "2.0.0-a.138",
"version": "2.0.0-a.140",
"cenv": {
"globals": true
}
Expand Down
2 changes: 1 addition & 1 deletion example/packages/spa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stoked-cenv/web-spa",
"version": "2.0.0-a.138",
"version": "2.0.0-a.140",
"dependencies": {
"@auth0/auth0-react": "^2.2.0",
"axios": "^0.27.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/cdk/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export function getDomains(subdomain?: string) {
console.log('appIfNotSameAsRoot', appIfNotSameAsRoot);
const appMatchesRoot = !appIfNotSameAsRoot;
let finalDomains = null;
for (let i = 0; i < subdomain.split(',').length; i++) {
console.log('subdomain', subdomain);
for (let i = 0; i < subdomain?.split(',').length; i++) {
let subdomainInstance = subdomain.split(',')[i];
subdomainInstance = `${subdomainInstance ? subdomainInstance + '.' : ''}`;
const app = appIfNotSameAsRoot ? `${APP}.${rootDomain}` : rootDomain;
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/params/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"author": "Brian Stoker",
"license": "MIT",
"dependencies": {
"@stoked-cenv/lib": "^2.0.0-a.139",
"@stoked-cenv/lib": "^2.0.0-a.140",
"async-mutex": "^0.4.0",
"build": "^0.1.4",
"js-yaml": "^4.1.0",
Expand Down

0 comments on commit ed52bee

Please sign in to comment.