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'));
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
basePath: '/bodenfeuchte',
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user