fix: resolve 404 by fixing middleware expansion and bypass buggy cli for pagespeed
Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 10s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / ⚡ PageSpeed (push) Has been cancelled
Build & Deploy / 🔔 Notifications (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has been cancelled
Build & Deploy / 🧪 QA (push) Has been cancelled
Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 10s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / ⚡ PageSpeed (push) Has been cancelled
Build & Deploy / 🔔 Notifications (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has been cancelled
Build & Deploy / 🧪 QA (push) Has been cancelled
This commit is contained in:
@@ -30,6 +30,7 @@ jobs:
|
||||
traefik_rule: ${{ steps.determine.outputs.traefik_rule }}
|
||||
gatekeeper_rule: ${{ steps.determine.outputs.gatekeeper_rule }}
|
||||
project_name: ${{ steps.determine.outputs.project_name }}
|
||||
auth_middleware: ${{ steps.determine.outputs.auth_middleware }}
|
||||
steps:
|
||||
- name: 🔍 Debug Info
|
||||
shell: bash
|
||||
@@ -134,6 +135,13 @@ jobs:
|
||||
echo "directus_url=$DIRECTUS_URL" >> "$GITHUB_OUTPUT"
|
||||
echo "directus_host=$DIRECTUS_HOST" >> "$GITHUB_OUTPUT"
|
||||
echo "project_name=$PRJ_ID-$TARGET" >> "$GITHUB_OUTPUT"
|
||||
|
||||
# Determine middleware
|
||||
if [[ "$TARGET" == "production" ]]; then
|
||||
echo "auth_middleware=compress" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "auth_middleware=$PRJ_ID-$TARGET-auth,compress" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
qa:
|
||||
name: 🧪 QA
|
||||
@@ -259,7 +267,7 @@ jobs:
|
||||
GATEKEEPER_PASSWORD=${{ secrets.GATEKEEPER_PASSWORD || vars.GATEKEEPER_PASSWORD }}
|
||||
AUTH_COOKIE_NAME=${{ secrets.AUTH_COOKIE_NAME || vars.AUTH_COOKIE_NAME || 'mintel_gatekeeper_session' }}
|
||||
COOKIE_DOMAIN=${{ secrets.COOKIE_DOMAIN || vars.COOKIE_DOMAIN || '.mintel.me' }}
|
||||
AUTH_MIDDLEWARE=$( [[ "${{ needs.prepare.outputs.target }}" == "production" ]] && echo "compress" || echo "${{ needs.prepare.outputs.project_name }}-auth,compress" )
|
||||
AUTH_MIDDLEWARE=${{ needs.prepare.outputs.auth_middleware }}
|
||||
|
||||
# External Services
|
||||
SENTRY_DSN=${{ secrets.SENTRY_DSN || vars.SENTRY_DSN }}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"video:render:contact": "remotion render video/index.ts ContactFormShowcase out/contact-showcase.mp4 --concurrency=1 --codec=h264 --crf=16 --pixel-format=yuv420p --overwrite",
|
||||
"video:render:button": "remotion render video/index.ts ButtonShowcase out/button-showcase.mp4 --concurrency=1 --codec=h264 --crf=16 --pixel-format=yuv420p --overwrite",
|
||||
"video:render:all": "npm run video:render:contact && npm run video:render:button",
|
||||
"pagespeed:test": "mintel pagespeed test",
|
||||
"pagespeed:test": "npx tsx ./scripts/pagespeed-sitemap.ts",
|
||||
"cms:bootstrap": "DIRECTUS_URL=http://localhost:8055 npx tsx --env-file=.env scripts/setup-directus.ts",
|
||||
"cms:push:staging": "../../scripts/sync-directus.sh push staging",
|
||||
"cms:pull:staging": "../../scripts/sync-directus.sh pull staging",
|
||||
|
||||
Reference in New Issue
Block a user