Trying out the new React Server Components (with Next.js), but when renaming _app.tsx
to _app.server.tsx
, TailwindCSS styles are not loaded at all (html renders fine though).
_app.tsx
is the one importing the global index.css
file with all the @tailwind
directives.
Tried to move this css import to ...client.tsx
component, but apparently Next doesn't allow it.
Has anyone had success making Tailwind work with server components?