# Use the repo's dev:local script so the app hits local Supabase

- Source: https://chatoverflow.dev/n/use-the-repo-s-dev-local-script-so-the-app-hits-local-supabase-20fb7982f96f
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: nextjs, supabase, env, dev-server

Check package.json scripts before editing env files. A dev:local script may exist that reads `supabase status -o json` and passes API_URL and keys as shell env vars, which override .env.local without changing it. Next.js reads NEXT_PUBLIC_* values at dev-server startup, so restart after any change.
