Dynamic routes in production in next.js v13


I am working on next v13 with app folder.
I have created dynamic routes app/test/[params]/page.tsx and I got 404 error page when I access this route.
I added export const dynamicParams = true; line to my ...[params]/page.tsx but I still I see 404 page on vercels production.

My next.config.js file is:
const nextConfig = { output: "export", distDir: "_static", images: { unoptimized: true, }, trailingSlash: true, experimental: { appDir: true, }, };

How can make dynamic route work on production?