Rückbau auf lokal
ACHTUNG Text
This commit is contained in:
@@ -51,7 +51,7 @@ function AppContent() {
|
||||
|
||||
console.log('Loading data for ID:', id)
|
||||
|
||||
// Backend-Aufruf mit Proxy
|
||||
// Backend-Aufruf mit HTTP Basic Auth
|
||||
const formData = new FormData()
|
||||
formData.append('cmd', 'GET_ONE')
|
||||
formData.append('id', id)
|
||||
|
||||
@@ -20,11 +20,11 @@ export default function LastButtons({ mitSend, mitBack, handleBack}) {
|
||||
setIsSending(true)
|
||||
|
||||
try {
|
||||
// API URL und Auth-Daten aus Environment
|
||||
// API URL aus Environment Variable
|
||||
const APIURL = import.meta.env.VITE_API_URL
|
||||
const username = import.meta.env.VITE_API_USERNAME
|
||||
const password = import.meta.env.VITE_API_PASSWORD
|
||||
|
||||
|
||||
if (!APIURL) {
|
||||
throw new Error('API URL nicht konfiguriert.')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user