feat: refactor API base URL handling and update frontend components for improved data structure

This commit is contained in:
2026-06-20 02:26:37 +00:00
parent 9f2e85f60f
commit 112624fff9
8 changed files with 72 additions and 53 deletions
+4 -4
View File
@@ -3,10 +3,10 @@
# Copy this file to .env.local and fill in your values.
# .env.local is gitignored and never committed.
#
# VITE_CODESPACE_NAME is required when running inside a GitHub Codespace.
# It is used to build the backend API base URL:
# https://${VITE_CODESPACE_NAME}-8000.app.github.dev/api
# VITE_CODESPACE_NAME can be used to explicitly point at the backend API.
# When running inside a GitHub Codespace, the frontend will also auto-detect
# the backend host from the current app.github.dev URL.
#
# If unset, the frontend falls back to http://localhost:8000/api.
# If unset outside Codespaces, the frontend falls back to http://localhost:8000/api.
VITE_CODESPACE_NAME=your-codespace-name-here