Next.js & Tailwindcss - Tailwindcss doesn't work when i export my project

Viewed 18

For build and export my project I use yarn run build command. build:"next build && next export" in my package.json When i export my site, tailwindcss doesn't work. I reviewed index.html and i saw script and link sources not correct.

In index.html

<link rel="stylesheet" href="/_next/static/css/5b6aebeeb7dc29a8.css" data-n-g=""/>

When i changed

<link rel="stylesheet" href="./_next/static/css/5b6aebeeb7dc29a8.css" data-n-g=""/>

It works. What should i do?

I try export my project Vercel also. Every page works correctly but when i go index.html i see a blank page and title says "Application error: a client-side exception has occurred"

0 Answers
Related