feat: refactor GiteaWidget to use environment variables and improve configuration options
This commit is contained in:
17
.env
17
.env
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user