@nuxt/turnstile module is acting differently in production
The @nuxt/turnstile module is working well on localhost but if i am using it in production , the tailwind css is not loading and working.
6 Replies
Hi @hz2222. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources do not contain specific information about the @nuxt/turnstile module causing Tailwind CSS not to load or work in production. There are discussions about Tailwind CSS integration and configuration in Nuxt, and about other modules, but nothing directly addresses an interaction or conflict between @nuxt/turnstile and Tailwind CSS in production environments.
If you are experiencing this issue, it may be related to configuration or build differences between development and production, but the provided sources do not offer a confirmed solution or explanation for this scenario.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@993174034940444752> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
what do you mean?
I’m using turnstile just fine in production and development
I just installed the module > set the environment variables for it > set runtime config for it and then use it in code like <NuxtTurnstile v-model=“turnstileToken” /> did you do anything differently? It doesn’t use tailwind either it just displays an iframe from cloudflare
@WiFi Plug yes i did the same thing but but the tailwind css did not load with it
When it was in my nuxt.config.ts module , in localhost everything was working fine but in production, the tailwind css did not load
what does that mean. what makes you think this is related to turnstile?