From 42d218116236244a3c2f13be21b490a8a51316b0 Mon Sep 17 00:00:00 2001 From: Sumita Canopas Date: Thu, 8 Feb 2024 21:21:54 +0530 Subject: [PATCH] Fix lambda zip --- .github/workflows/deploy-frontend-test.yml | 1 + infrastructure/frontend-test.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-frontend-test.yml b/.github/workflows/deploy-frontend-test.yml index e910055c4..5dcf050dd 100644 --- a/.github/workflows/deploy-frontend-test.yml +++ b/.github/workflows/deploy-frontend-test.yml @@ -28,6 +28,7 @@ jobs: sed -i "s|CLOUDFRONT_URL_VALUE|${{ secrets.CLOUDFRONT_URL_VALUE }}|g" config.js sh ./../deploy/generate-sitemap.sh https://dev-stack.canopas.com https://dev-stack-api.canopas.com yarn install --frozen-lockfile && yarn build + zip -r server.zip ./.output/server aws s3 cp server.zip s3://canopas-website-static aws s3 sync ./.output/public s3://canopas-website-static --exclude "*.js" aws s3 sync ./.output/public s3://canopas-website-static --include "*.js" --content-type "application/javascript" diff --git a/infrastructure/frontend-test.yml b/infrastructure/frontend-test.yml index 200dff333..aff236587 100644 --- a/infrastructure/frontend-test.yml +++ b/infrastructure/frontend-test.yml @@ -12,7 +12,7 @@ Resources: Type: AWS::Serverless::Function Properties: PackageType: Zip - CodeUri: nuxt-frontend/.output/server/ + CodeUri: https://canopas-website-static.s3.ap-south-1.amazonaws.com/server.zip Handler: index.handler Runtime: nodejs20.x Architectures: