Real-time dashboard for monitoring global news, markets, and geopolitical events
TypeScript
Convert GitHub Pages to redirect to Vercel
Sean Thielen-Esparza0118e2ab29b0
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.ymlindex 8e31ee9..704fe14 100644--- a/.github/workflows/deploy.yml+++ b/.github/workflows/deploy.yml@@ -1,4 +1,4 @@-name: Deploy to GitHub Pages+name: Deploy Redirect to GitHub Pageson:push:@@ -15,39 +15,62 @@ concurrency:cancel-in-progress: falsejobs:- build:+ deploy:+ environment:+ name: github-pages+ url: ${{ steps.deployment.outputs.page_url }}runs-on: ubuntu-lateststeps:- - name: Checkout- uses: actions/checkout@v4-- - name: Setup Node- uses: actions/setup-node@v4- with:- node-version: 20- cache: npm-- - name: Install dependencies- run: npm ci-- - name: Build- run: npm run build- env:- BASE_PATH: /situation-monitor- VITE_FINNHUB_API_KEY: ${{ secrets.VITE_FINNHUB_API_KEY }}+ - name: Create redirect page+ run: |+ mkdir -p build+ cat > build/index.html << 'EOF'+ <!DOCTYPE html>+ <html>+ <head>+ <meta charset="utf-8">+ <title>Redirecting to Situation Monitor...</title>+ <meta http-equiv="refresh" content="0; url=https://situation-monitor.vercel.app">+ <link rel="canonical" href="https://situation-monitor.vercel.app">+ <style>+ body {+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;+ display: flex;+ justify-content: center;+ align-items: center;+ height: 100vh;+ margin: 0;+ background: #0a0a0a;+ color: #888;+ }+ a { color: #4ade80; }+ </style>+ </head>+ <body>+ <p>Redirecting to <a href="https://situation-monitor.vercel.app">situation-monitor.vercel.app</a>...</p>+ </body>+ </html>+ EOF+ cat > build/404.html << 'EOF'+ <!DOCTYPE html>+ <html>+ <head>+ <meta charset="utf-8">+ <title>Redirecting to Situation Monitor...</title>+ <meta http-equiv="refresh" content="0; url=https://situation-monitor.vercel.app">+ <link rel="canonical" href="https://situation-monitor.vercel.app">+ </head>+ <body>+ <p>Redirecting to <a href="https://situation-monitor.vercel.app">situation-monitor.vercel.app</a>...</p>+ </body>+ </html>+ EOF- name: Upload artifactuses: actions/upload-pages-artifact@v3with:path: build- deploy:- environment:- name: github-pages- url: ${{ steps.deployment.outputs.page_url }}- runs-on: ubuntu-latest- needs: build- steps:- name: Deploy to GitHub Pagesid: deploymentuses: actions/deploy-pages@v4