fix login, unify backend and frontend in 1 vercel project (#180)

This commit is contained in:
Martin
2026-04-25 12:24:58 +02:00
committed by GitHub
parent c4a4220448
commit c3f338780b
6 changed files with 7 additions and 19 deletions
-1
View File
@@ -5,7 +5,6 @@
To set up the project GitHub-Stats-Extended locally, run the following commands:
```bash
./vercel-preparation.sh
pnpm install
pnpm run build:packages
pnpm run dev:frontend
-5
View File
@@ -33,11 +33,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run vercel-preparation.sh
run: |
chmod +x ./vercel-preparation.sh
./vercel-preparation.sh
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
-6
View File
@@ -6,11 +6,5 @@
"source": "/",
"destination": "https://github.com/stats-organization/github-stats-extended"
}
],
"rewrites": [
{
"source": "/frontend/:match*",
"destination": "https://gse-frontend-preview.vercel.app/:match*"
}
]
}
+1 -5
View File
@@ -1,12 +1,8 @@
const PROD = false as boolean;
export const USE_LOGGER = true as boolean;
export const CLIENT_ID = "Ov23lilAc5biyyRY0K1u";
export const HOST = PROD
? "github-stats-extended.vercel.app"
: "github-stats-extended-preview.vercel.app";
export const HOST = window.location.host;
const REDIRECT_URI = `https://${HOST}/frontend`;
+1 -1
View File
@@ -2,7 +2,7 @@ import axios from "axios";
import { useEffect, useMemo, useRef, useState } from "react";
import type { JSX } from "react";
import { useDispatch } from "react-redux";
import BounceLoader from "react-spinners/BounceLoader";
import { BounceLoader } from "react-spinners";
import { v4 as uuidv4 } from "uuid";
import { authenticate } from "../../api/user";
+5 -1
View File
@@ -12,4 +12,8 @@ cp -RP apps/backend/. apps/backend-copy/
# `shopt` includes dot-files in the `mv` operation
(shopt -s dotglob && mv apps/backend-copy/* apps/backend/.vercel/output/functions/api.func/)
cp -RP apps/backend/.vercel/output/functions/api.func/_dot_vercel_copy/output apps/backend/.vercel/
rm -rf apps/backend/node_modules
rm -rf apps/deployment
pnpm install
pnpm build:frontend
mkdir -p apps/backend/.vercel/output/static/frontend/
cp -RP apps/frontend/build/. apps/backend/.vercel/output/static/frontend/