Skip to content

Commit

Permalink
Fix lambda zip
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Feb 8, 2024
1 parent 851b8fe commit 42d2181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/deploy-frontend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/frontend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 42d2181

Please sign in to comment.