Next.js Discord

Discord Forum

Google Maps API calls misdirected to Next.js server in Production

Unanswered
Nile tilapia posted this in #help-forum
Open in Discord
Nile tilapiaOP
Hey all, I'm new to Next.js. My app's Google Maps (@react-google-maps/api) is breaking in prod/staging. Client API calls go to my own Next.js server instead of maps.googleapis.com. This only happens after next build; it works perfectly in next dev

I've already checked next.config.js and have no rewrites. What in the App Router could cause this behavior? Where should I be looking? Any guidance would be amazing! Thank you. Love and gratitude ❤️

2 Replies