diff --git a/next.config.ts b/next.config.ts index 9340cf5..ea20f08 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,6 +1,9 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - output: 'export', + output: 'export', + // Emit each route as a folder with index.html (e.g. admin/login/index.html) + // so static hosts (nginx) can serve clean URLs without custom rewrite rules. + trailingSlash: true, }; export default nextConfig;