Static export without fetch
Unanswered
Mandarin fish posted this in #help-forum
Mandarin fishOP
Hello there. I'm trying to generate HTML files for my dynamic routes. The data which dynamic routes will use is located in a .ts file inside project, so no async request is needed, all I need to do is find correct item from the data inside .ts file. It works when in dev env (guessing it is using SSR mode while in dev) but when I try to build, no HTML is being generated. My config has
output: 'export', I have generateStaticParams function exported (not async since it's completely static) from the dynamic route (as [slug]/page.tsx). Thanks in advance.