chore: update LNBits API configuration in environment and documentation
- Added VITE_LNBITS_API_URL to .env.example for LNBits API integration. - Updated AUTHENTICATION.md to reflect changes in LNBits base URL configuration. - Refactored ProfileDialog.vue and config files to use VITE_LNBITS_BASE_URL instead of VITE_API_BASE_URL for API calls.
This commit is contained in:
parent
7bee629e6b
commit
c2f11f3d96
4 changed files with 8 additions and 8 deletions
|
|
@ -22,7 +22,7 @@ const emit = defineEmits<Emits>()
|
|||
const userDisplay = computed(() => auth.userDisplay.value)
|
||||
|
||||
// Get the API base URL from environment variables
|
||||
const apiBaseUrl = import.meta.env.VITE_API_BASE_URL || ''
|
||||
const apiBaseUrl = import.meta.env.VITE_LNBITS_BASE_URL || ''
|
||||
|
||||
function handleLogout() {
|
||||
auth.logout()
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export const config: AppConfig = {
|
|||
adminPubkeys: parseJsonEnv(import.meta.env.VITE_ADMIN_PUBKEYS, [])
|
||||
},
|
||||
api: {
|
||||
baseUrl: import.meta.env.VITE_API_BASE_URL || '',
|
||||
baseUrl: import.meta.env.VITE_LNBITS_BASE_URL || '',
|
||||
key: import.meta.env.VITE_API_KEY || ''
|
||||
},
|
||||
push: {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
export const LNBITS_CONFIG = {
|
||||
// Base URL for the LNBits API
|
||||
// This should point to your LNBits instance
|
||||
API_BASE_URL: import.meta.env.VITE_LNBITS_API_URL || '/api/v1',
|
||||
API_BASE_URL: `${import.meta.env.VITE_LNBITS_BASE_URL || ''}/api/v1`,
|
||||
|
||||
// Whether to enable debug logging
|
||||
DEBUG: import.meta.env.VITE_LNBITS_DEBUG === 'true',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue