Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 88b566c

Browse files
committed
updated app.py to handle base domain name for app environment
1 parent 9b107db commit 88b566c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awscdk/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# if the the production environent subdomain should nott be included in the URL
1414
# redefine `full_domain_name` to `base_domain_name` for that environment
1515
full_domain_name = f"{environment_name}.{base_domain_name}" # dev.mysite.com
16-
# if environment_name == "prod":
17-
# full_domain_name = base_domain_name
16+
if environment_name == "app":
17+
full_domain_name = base_domain_name
1818
base_app_name = os.environ.get("APP_NAME", "mysite-com")
1919
full_app_name = f"{environment_name}-{base_app_name}" # dev-mysite-com
2020
aws_region = os.environ.get("AWS_DEFAULT_REGION", "us-east-1")

0 commit comments

Comments
 (0)