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:
+7
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user