From 0367e4b41b8afeda1dab4a239869b156a9d1eb0d Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Mon, 2 Sep 2024 15:08:16 +0800 Subject: [PATCH] formatting --- serverless/aws/src/index.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/serverless/aws/src/index.ts b/serverless/aws/src/index.ts index 631dd42..c4ffbe0 100644 --- a/serverless/aws/src/index.ts +++ b/serverless/aws/src/index.ts @@ -160,7 +160,12 @@ export const handlerRaw = async ( const header = await p.getHeader(); if (!tile) { - if (!(process.env.PUBLIC_HOSTNAME || event.headers['x-distribution-domain-name'])) { + if ( + !( + process.env.PUBLIC_HOSTNAME || + event.headers["x-distribution-domain-name"] + ) + ) { return apiResp( 501, "PUBLIC_HOSTNAME must be set for TileJSON", @@ -173,7 +178,9 @@ export const handlerRaw = async ( const t = tileJSON( header, await p.getMetadata(), - process.env.PUBLIC_HOSTNAME || event.headers['x-distribution-domain-name'] || "", + process.env.PUBLIC_HOSTNAME || + event.headers["x-distribution-domain-name"] || + "", name );