redirect
Default: true
Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false.
npx nuxi@latest init frontend
const scriptTag = document.createElement('script')
scriptTag.src = `https://www.google.com/recaptcha/api.js?render=${recaptchaKey}`
scriptTag.async = true
scriptTag.defer = true
scriptTag.addEventListener('load', () => {
// тут можно добавить обработчик
})
document.body.appendChild(scriptTag)
document.body.innerHTML += твойтег