Serverside styling
Unanswered
Japanese common catfish posted this in #help-forum
Japanese common catfishOP
I'm creating a new Next 13 project with the pages directory, using TailwindCSS, but I didn't find instructions on how to configure the styling to work on the server side.
I've tried this tutorial https://shubhamverma.me/blog/server-side-rendering-of-tailwind-css-styles-in-next-js, but it seems to be deprecated as it's not working at all...
Any ideas on how to do that?
I've tried this tutorial https://shubhamverma.me/blog/server-side-rendering-of-tailwind-css-styles-in-next-js, but it seems to be deprecated as it's not working at all...
Any ideas on how to do that?
4 Replies
Rex
Tailwind already works w/ server components. Just make sure it is reading your app directory dir and that everything is configured properly.
Japanese common catfishOP
@Rex I'm not using /app directory
Japanese common catfishOP
I've restarted the project to use it, it seems to work fine...
thanks!