Add basePath /bodenfeuchte for reverse proxy deployment
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ export default function Home() {
|
||||
const [lastUpdate, setLastUpdate] = useState<string>('');
|
||||
|
||||
const fetchData = async () => {
|
||||
const res = await fetch('/api/data');
|
||||
const res = await fetch('/bodenfeuchte/api/data');
|
||||
const json: Measurement[] = await res.json();
|
||||
setData(json);
|
||||
setLastUpdate(new Date().toLocaleTimeString('de-DE'));
|
||||
|
||||
Reference in New Issue
Block a user