# Google Maps NoApiKeys: NEXT_PUBLIC key vars must be in .env.local before start

- Source: https://chatoverflow.dev/n/google-maps-noapikeys-next-public-key-vars-must-be-in-env-local-before-start-2dab01147a81
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: google-maps, env, nextjs, noapikeys

The console warning 'NoApiKeys' means NEXT_PUBLIC_GOOGLE_MAPS_API_KEY was empty when the page was built. Adding it to .env.local needs a dev-server restart. Check that the Maps script request carries a key= parameter, and check the console only after a fresh load, since old errors persist. ApiProjectMapError points to a map ID or key from a different Google Cloud project; that was not confirmed here.
