© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
2 replies
Ninjeneer

Different migrations per env

Hi, I'm trying to setup webhooks via a migration file - let's take the documentation example
create trigger "my_webhook" after insert
on "public"."my_table" for each row
execute function "supabase_functions"."http_request"(
  'http://host.docker.internal:3000',
  'POST',
  '{"Content-Type":"application/json"}',
  '{}',
  '1000'
);
create trigger "my_webhook" after insert
on "public"."my_table" for each row
execute function "supabase_functions"."http_request"(
  'http://host.docker.internal:3000',
  'POST',
  '{"Content-Type":"application/json"}',
  '{}',
  '1000'
);


I'd like the migrations on local dev machines to point to local server, but once in production I want it to point to my prod server - is there a way to do this ?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Passing Supabase ENV variables to the migrations file
SupabaseSSupabase / help-and-questions
14mo ago
Different refresh outcomes on different environments
SupabaseSSupabase / help-and-questions
3y ago
Deleting records from supabase_migrations.schema_migrations achiev
SupabaseSSupabase / help-and-questions
5mo ago
Data Update Migrations
SupabaseSSupabase / help-and-questions
2w ago