Next.js + TailwindCSS project works on Firebase but styles missing when running exported files locally

Hi everyone,

I created a Next.js project with TailwindCSS and deployed it on Firebase, everything works fine there.

But when I export the project and run the files locally, Tailwind styles are not applied.

Here’s what I’ve tried:

  • Running npm run dev works fine.

  • Exported static files lose styling.

  • tailwind.config.js content paths seem correct.

  • globals.css is imported in _app.js.

Has anyone faced this issue before? How can I export/run Next.js + TailwindCSS project locally without losing styles?