refactor(config): separate base URL from API URL for CLI usage

Add signUrl property to config for CLI sign URL without /api/v1 suffix.
Update CLIGuidePage to use config.signUrl instead of hardcoded URL.
Update .env.example and add .swarm/ to .gitignore.
This commit is contained in:
2026-04-06 01:57:40 +09:30
parent a7310367a6
commit 3e0a7f9de4
5 changed files with 13 additions and 6 deletions
+7 -1
View File
@@ -1,12 +1,18 @@
// Secuird Configuration
// Environment-specific settings for the application
// Base URL without /api/v1 suffix - used for CLI sign URL
const BASE_URL = import.meta.env.VITE_API_BASE_URL || "http://192.168.64.7:8888";
export const config = {
// API Configuration
api: {
baseUrl: import.meta.env.VITE_API_BASE_URL || "http://192.168.64.7:8888/api/v1",
baseUrl: `${BASE_URL}/api/v1`,
},
// Sign URL for CLI (same as base URL, no /api/v1)
signUrl: BASE_URL,
// App metadata
app: {
name: "Secuird",