Dan Van Brunt
11/30/2021, 7:36 PM_redirects
file in the root of the StaticSite Bucket. The issue right now is that StaticSite puts the file deploys into bucket keys/directories like deploy-4f8996501e982c7d7a6bdcd3c2396bc5
so how can we let the edge function know which is the current? (without having to rebuild our lambda functions)thdxr
11/30/2021, 7:38 PMDan Van Brunt
11/30/2021, 7:39 PMDan Van Brunt
11/30/2021, 7:39 PMDan Van Brunt
11/30/2021, 7:40 PM/deploy-asfdsf/contact
or
/contact
thdxr
11/30/2021, 7:40 PMthdxr
11/30/2021, 7:41 PMthdxr
11/30/2021, 7:41 PMDan Van Brunt
11/30/2021, 7:41 PMDan Van Brunt
11/30/2021, 7:42 PMDan Van Brunt
11/30/2021, 7:42 PMDan Van Brunt
11/30/2021, 7:50 PMaws s3 sync --delete
on the root bucket?thdxr
11/30/2021, 7:52 PMDan Van Brunt
11/30/2021, 7:53 PMthdxr
11/30/2021, 7:56 PMDan Van Brunt
11/30/2021, 8:16 PMthdxr
11/30/2021, 8:21 PMDan Van Brunt
11/30/2021, 8:32 PMDan Van Brunt
11/30/2021, 8:32 PMDan Van Brunt
11/30/2021, 8:33 PMDan Van Brunt
11/30/2021, 8:36 PMpublic
https://github.com/iDVB/serverless-stack/blob/665525459ce4fd87c3d8de842931b74814757a2c/packages/resources/src/StaticSite.ts#L68Dan Van Brunt
11/30/2021, 8:49 PMDan Van Brunt
11/30/2021, 9:23 PMCfnDistribution
to see if we can read this value off the nodes… but having no luck as its somehow behind a LazyAny