Skip to content

Commit

Permalink
exclude netlify.app from recaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienChampagnol committed Aug 16, 2023
1 parent eb2997c commit 3cdfa1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/Launcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ watch(is_cloud_running, (value, oldValue) => {
onMounted(() => {
if (process.client) {
const config = useRuntimeConfig()
if (config.public.NODE_ENV !== 'production') {
if ((config.public.NODE_ENV !== 'production') || (config.public.SITE_URL.includes('.netlify.app'))) {
cloud_store.$patch({ is_captcha_validated: true })
}
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"description": "OpenSource Vue/Vuetify framework for web applications",
"type": "module",
"version": "0.0.10",
"version": "0.0.11",
"main": "./nuxt.config.js",
"dependencies": {
"@mdi/font": "^7.2.96",
Expand Down

0 comments on commit 3cdfa1e

Please sign in to comment.