Use basePath for internal links and export from next.config.ts

This commit is contained in:
2025-06-08 22:14:32 +02:00
parent 94b491a274
commit 162524e5b0
5 changed files with 17 additions and 12 deletions

View File

@@ -4,6 +4,7 @@
import {motion} from 'framer-motion';
import Link from 'next/link';
import Image from 'next/image';
import {basePath} from '@/next.config';
export default function HomePage() {
return (
@@ -29,7 +30,7 @@ export default function HomePage() {
<p className="text-lg max-w-2xl text-gray-100">
Persönliche Betreuung. Klare Kommunikation. Effektive Lösungen für Ihr Anliegen.
</p>
<Link href="/kontakt/">
<Link href={`${basePath}/kontakt/`}>
<motion.button
whileHover={{scale: 1.05}}
whileTap={{scale: 0.95}}