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
At this moment this is impossible to use runtime config with this module in latest versions of nuxt. The problem is only variables defined in public section accessible on client side. See docs. So section google-adsence should be moved into public.
Also camelCase should be preferred for section naming. So google-adsence should be renamed to googleAdsense.
UPD: Moreover module does nothing, but prints warn "Invalid AdSense client ID specified" if option id is not specify directly through module options.
The text was updated successfully, but these errors were encountered:
I solved this issue by removing google-adsence public runtime config.
In my case, I don't useGOOGLE_ADSENSE_ID variable itself in our components, we just need <adsbygoogle> components, that's why I could delete its runtime config.
What I needed to do was to define id and test options inside @nuxtjs/google-adsense options.
(I need to define GOOGLE_ADSENSE_ID and GOOGLE_ADSENSE_TEST_MODE environment vars before running nuxt build.)
At this moment this is impossible to use runtime config with this module in latest versions of nuxt. The problem is only variables defined in
public
section accessible on client side. See docs. So sectiongoogle-adsence
should be moved intopublic
.Also camelCase should be preferred for section naming. So
google-adsence
should be renamed togoogleAdsense
.UPD: Moreover module does nothing, but prints warn "Invalid AdSense client ID specified" if option
id
is not specify directly through module options.The text was updated successfully, but these errors were encountered: