feat: refactor GiteaWidget to use environment variables and improve configuration options

This commit is contained in:
Kayela Claybon
2026-01-16 16:14:08 -06:00
parent 22666529d7
commit 456014e168
6 changed files with 179 additions and 115 deletions

17
.env
View File

@@ -1,5 +1,12 @@
REACT_APP_GITHUB_TOKEN=your_github_token_here
REACT_APP_GITEA_TOKEN=your_gitea_token_here
GITEA_API_URL='https://git.konceptkit.com/'
GITHUB_API_URL='https://api.github.com/'
GITEA_ACCESS_TOKEN='de037d3d8b7268acd0dc734a83799e4f3761bad3'
# Vite requires VITE_ prefix
VITE_GITEA_API_URL=https://git.konceptkit.com
VITE_DEFAULT_REPO=kayela/membership-fe
VITE_DEFAULT_BRANCH=main
VITE_COMMIT_LIMIT=10
VITE_SHOW_CONFIG=true
VITE_GITEA_TOKEN='de037d3d8b7268acd0dc734a83799e4f3761bad3'
# Public variables (exposed to client)
VITE_PUBLIC_SITE_NAME=My App