feat: configure PocketBase URL via environment variable

- Replaced hardcoded localhost URL with process.env.POCKETBASE_URL for deployment flexibility
- Added @types/node dependency and TypeScript configuration to support process.env access
This commit is contained in:
Esa Kataja
2025-11-21 15:46:46 +02:00
parent 68c7115d8e
commit bae4153201
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -14,6 +14,6 @@ export default defineNuxtConfig({
'pocketbase-nuxt'
],
pocketbase: {
url: 'http://localhost:8090'
url: process.env.POCKETBASE_URL
},
})