From 7cfc7cb15331f908aef6a3ee04a5b698fb1e383b Mon Sep 17 00:00:00 2001 From: Sumita Canopas Date: Tue, 13 Feb 2024 15:10:22 +0530 Subject: [PATCH] Remove route rules --- .github/workflows/deploy-frontend-dev.yml | 1 + .github/workflows/deploy-frontend-prod.yml | 1 + nuxt-frontend/nuxt.config.js | 20 -------------------- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy-frontend-dev.yml b/.github/workflows/deploy-frontend-dev.yml index edc2c3b64..46bfe9d46 100644 --- a/.github/workflows/deploy-frontend-dev.yml +++ b/.github/workflows/deploy-frontend-dev.yml @@ -31,6 +31,7 @@ jobs: sed -i "s|CLOUDFRONT_URL_VALUE|${{ secrets.CLOUDFRONT_URL_VALUE_DEV }}|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 + aws s3 rm s3://canopas-website-ssr-dev --recursive cd .output/server && zip canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip -r . && aws s3 cp canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip s3://canopas-lambda-handlers && cd ../.. aws s3 sync ./.output/public s3://canopas-website-ssr-dev --exclude "*.js" aws s3 sync ./.output/public s3://canopas-website-ssr-dev --include "*.js" --content-type "application/javascript" diff --git a/.github/workflows/deploy-frontend-prod.yml b/.github/workflows/deploy-frontend-prod.yml index ebb9ece85..39f3871df 100644 --- a/.github/workflows/deploy-frontend-prod.yml +++ b/.github/workflows/deploy-frontend-prod.yml @@ -37,6 +37,7 @@ jobs: mv config.prod.js config.js sh ./../deploy/generate-sitemap.sh https://canopas.com https://prod-stack-api.canopas.com yarn install --frozen-lockfile && yarn build + aws s3 rm s3://canopas-website-ssr-prod --recursive cd .output/server && zip canopas_website_SSR_prod_${{ github.sha }}-${{ github.run_attempt }}.zip -r . && aws s3 cp canopas_website_SSR_prod_${{ github.sha }}-${{ github.run_attempt }}.zip s3://canopas-lambda-handlers && cd ../.. aws s3 sync ./.output/public s3://canopas-website-ssr-prod --exclude "*.js" aws s3 sync ./.output/public s3://canopas-website-ssr-prod --include "*.js" --content-type "application/javascript" diff --git a/nuxt-frontend/nuxt.config.js b/nuxt-frontend/nuxt.config.js index 5791726f2..025112860 100644 --- a/nuxt-frontend/nuxt.config.js +++ b/nuxt-frontend/nuxt.config.js @@ -40,26 +40,6 @@ export default defineNuxtConfig({ }); }, }, - routeRules: { - "/blog": { isr: true }, - "/resources": { isr: true }, - "/tag/**": { isr: true }, - "/": { prerender: true }, - "/services": { prerender: true }, - "/portfolio": { prerender: true }, - "/contributions": { prerender: true }, - "/about": { prerender: true }, - "/jobs/**": { prerender: true }, - "/contact": { prerender: true }, - "/android-app-development": { prerender: true }, - "/ios-app-development": { prerender: true }, - "/mobile-app-development": { prerender: true }, - "/backend-app-development": { prerender: true }, - "/flutter-app-development": { prerender: true }, - "/frontend-development": { prerender: true }, - "/thank-you": { prerender: true }, - "/unsubscribe": { prerender: true }, - }, nitro: { preset: "aws-lambda", },