Add basePath /bodenfeuchte for reverse proxy deployment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 19:05:10 +02:00
parent 635b3ce598
commit a9fbf25d9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export default function Home() {
const [lastUpdate, setLastUpdate] = useState<string>(''); const [lastUpdate, setLastUpdate] = useState<string>('');
const fetchData = async () => { const fetchData = async () => {
const res = await fetch('/api/data'); const res = await fetch('/bodenfeuchte/api/data');
const json: Measurement[] = await res.json(); const json: Measurement[] = await res.json();
setData(json); setData(json);
setLastUpdate(new Date().toLocaleTimeString('de-DE')); setLastUpdate(new Date().toLocaleTimeString('de-DE'));
+1 -1
View File
@@ -1,7 +1,7 @@
import type { NextConfig } from "next"; import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
/* config options here */ basePath: '/bodenfeuchte',
}; };
export default nextConfig; export default nextConfig;