I have played around with the experimental feature optimizeCss, but vercel suggests that we don't use it anymore. Also, I am not really sure how this would work when we try Server side streaming.
I have also tried exploring the NextJs Middleware util to check if there is a way for me to access the html but I hit a dead-end.
What is the right way to access the baked html before it is sent out so that I can try and also pack the critical css as required?
A similar question was already posted here but, I think looking at the raw html, we will be able to better determine the required css than what Purgecss does.