Skip to content

Commit 56d5b54

Browse files
committed
Replace staging in comments with dev
1 parent 68ddb96 commit 56d5b54

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

terraform-module/edge-lambdas/src/viewer-request/viewer-request.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ const DEFAULT_BRANCH_DEFAULT_NAME = 'master'
2020
* based on the host name specified by the request, and sets that file as the URI of the request.
2121
* The options are:
2222
* - HTML for latest app version on the main branch
23-
* e.g. app.staging.example.com and app.example.com
23+
* e.g. app.dev.example.com and app.example.com
2424
* - HTML for latest app version on a feature branch (branch preview deployment)
25-
* e.g. my-branch.staging.example.com
25+
* e.g. my-branch.dev.example.com
2626
* - HTML for a specific app version (hash preview deployment)
27-
* e.g. preview-b104213fc39ecca4f237a7bd6544d428ad46ec7e.app.staging.example.com
27+
* e.g. preview-b104213fc39ecca4f237a7bd6544d428ad46ec7e.app.dev.example.com
2828
*
2929
* If the translations are enabled via configuration, this lambda will also fetch the current translation
3030
* version from S3 and pass it to the response lambda via custom headers on the request object.
@@ -83,7 +83,7 @@ function getUri(request: CloudFrontRequest, appVersion: string) {
8383
async function getAppVersion(request: CloudFrontRequest, config: Config, s3: S3Client) {
8484
const host = getHeader(request, 'host') ?? null
8585

86-
// Preview name is the first segment of the url e.g. my-branch for my-branch.app.staging.example.com
86+
// Preview name is the first segment of the url e.g. my-branch for my-branch.app.dev.example.com
8787
// Preview name is either a sanitized branch name or it follows the preview-[hash] pattern
8888
let previewName: string
8989

@@ -105,7 +105,7 @@ async function getAppVersion(request: CloudFrontRequest, config: Config, s3: S3C
105105
}
106106

107107
/**
108-
* We serve a preview for each app version at e.g.preview-[hash].app.staging.example.com
108+
* We serve a preview for each app version at e.g.preview-[hash].app.dev.example.com
109109
* If the preview name matches that pattern, we assume it's a hash preview link
110110
*/
111111
function getPreviewHash(previewName?: string) {

0 commit comments

Comments
 (0)