diff --git a/next.config.mjs b/next.config.mjs index 15eff7c..dbb8700 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,6 +1,15 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: 'export' + output: 'export', + async redirects() { + return [ + { + source: '/', + destination: '/zh/home', + permanent: true, + }, + ]; + }, }; export default nextConfig; diff --git a/src/app/[lang]/home/components/form.tsx b/src/app/[lang]/home/components/form.tsx index 3fb7eab..b292f84 100644 --- a/src/app/[lang]/home/components/form.tsx +++ b/src/app/[lang]/home/components/form.tsx @@ -1,5 +1,3 @@ -import Image from "next/image"; - export default function Form() { return ( @@ -27,7 +25,7 @@ export default function Form() { style={{background: 'linear-gradient(155deg, #A4D5FF 55%, #82B2FF 99%)'}} >