Update app configuration and plugin manager for improved environment variable support
- Modify app configuration to use environment variables for base URL and API key, enhancing flexibility for different environments. - Refactor plugin installation logic in the PluginManager to ensure proper configuration object structure. - Update base module initialization to correctly access Nostr relay options from the configuration, improving reliability.
This commit is contained in:
parent
e40ac91417
commit
c692664c93
3 changed files with 4 additions and 4 deletions
|
|
@ -55,8 +55,8 @@ export const appConfig: AppConfig = {
|
|||
lazy: false,
|
||||
config: {
|
||||
apiConfig: {
|
||||
baseUrl: 'http://lnbits',
|
||||
apiKey: 'your-api-key-here'
|
||||
baseUrl: import.meta.env.VITE_LNBITS_BASE_URL || 'http://localhost:5000',
|
||||
apiKey: import.meta.env.VITE_API_KEY || ''
|
||||
},
|
||||
ticketValidationEndpoint: '/api/tickets/validate',
|
||||
maxTicketsPerUser: 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue