🤖 Simple and easy Google reCAPTCHA integration with Nuxt.js
- Add
@nuxtjs/recaptcha
dependency withyarn
ornpm
into your project - Add
@nuxtjs/recaptcha
tomodules
section ofnuxt.config.js
- Configure it:
{
modules: [
[
'@nuxtjs/recaptcha', {
/* reCAPTCHA options */
}
],
]
}
using top level options
{
modules: [
'@nuxtjs/recaptcha',
],
recaptcha: {
/* reCAPTCHA options */
},
}
{
// ...
recaptcha: {
hideBadge: Boolean, // Hide badge element (v3)
language: String, // Recaptcha language (v2)
siteKey: String, // Site key for requests
version: Number // Version
},
// ...
}
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
Copyright (c) mvrlin [email protected]