From 6c005783e028345c4c54c2390629e82a1824b3c1 Mon Sep 17 00:00:00 2001 From: AmirmahdiNourkazemi Date: Tue, 30 Jun 2026 14:42:19 +0330 Subject: [PATCH] fix --- next.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;