You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to add @nuxtjs/recaptcha module based on my env variable, i have a boolean variable in my publicRuntimeConfig block, i need to check this variable when nuxtjs boots up and add the @nuxtjs/recaptcha module if its true.
is there any way we can achive this ?
i am currently doing like this ..
// check if isCaptchaEnabled is true. // if true push it to the modules array. if (config.publicRuntimeConfig.isCaptchaEnabled) { config.modules.push('@nuxtjs/recaptcha') }
it is working but i think there is a better way of doing it.
The text was updated successfully, but these errors were encountered:
i am trying to add @nuxtjs/recaptcha module based on my env variable, i have a boolean variable in my publicRuntimeConfig block, i need to check this variable when nuxtjs boots up and add the @nuxtjs/recaptcha module if its true.
is there any way we can achive this ?
i am currently doing like this ..
// check if isCaptchaEnabled is true. // if true push it to the modules array. if (config.publicRuntimeConfig.isCaptchaEnabled) { config.modules.push('@nuxtjs/recaptcha') }
it is working but i think there is a better way of doing it.
The text was updated successfully, but these errors were encountered: