Google Ai studio to supbase to vercel #187154
Replies: 7 comments
-
|
You’re seeing that warning because you’re using the Tailwind CDN (cdn.tailwindcss.com) in production. That’s it |
Beta Was this translation helpful? Give feedback.
-
|
Why this warning happens The warning appears because you are using the Tailwind CDN (cdn.tailwindcss.com). The CDN version is meant only for development and testing, not production. It warns you because: The CDN generates styles in the browser at runtime, which is slower. It increases page load time. It prevents optimization like removing unused CSS. Production apps should pre-build CSS for performance and reliability. Since you already use Vite and Next.js, you should install Tailwind properly through the build system instead of the CDN. How to fix it
Delete this line from your HTML or layout file: <script src="https://cdn.tailwindcss.com"></script>
Run: npm install -D tailwindcss postcss autoprefixer This creates: tailwind.config.js postcss.config.js
Inside tailwind.config.js: export default {
In your main CSS file (usually globals.css, index.css, or app.css): @tailwind base;
Why production requires this setup When Tailwind is installed via PostCSS or CLI: Only used classes are included (smaller bundle size). Styles are precompiled (better performance). It integrates properly with modern frameworks and build tools. |
Beta Was this translation helpful? Give feedback.
-
|
I'm on a public computer . how do i use google studio , and get hub to do this in ? |
Beta Was this translation helpful? Give feedback.
-
|
If you’re on a public computer, you probably can’t install Node.js or run npm. |
Beta Was this translation helpful? Give feedback.
-
|
I got an error when i did that. What did do wrong ? |
Beta Was this translation helpful? Give feedback.
-
|
You got the error because one of these happened: That’s it. |
Beta Was this translation helpful? Give feedback.
-
|
You got the error because one of these happened: That’s it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I buily app in Google studio and it keeps giving me "cdn.tailwindcss.com should not be used in production. To use Tailwind CSS in production, install it as a PostCSS plugin or use the Tailwind CLI: https://tailwindcss.com/docs/installation cdn.tailwindcss.com:64:1711
" in the console . How do i fix this? I'm new to this and i would like to know why it told me that it dosn't run tailwnds for app production . I have vite and next set up . What should i do ?
Beta Was this translation helpful? Give feedback.
All reactions