feat: Add Supabase configuration and migrations for MC Cars application
- Create Kong declarative configuration for routing and authentication. - Implement initialization script to set up the database. - Add SQL migration for initializing roles, schemas, and seeding vehicle data. - Create leads and customers tables with appropriate policies and functions for CRM. - Seed admin user and configure storage bucket with RLS policies.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Fallback runtime config — overwritten by the nginx container entrypoint at
|
||||
// boot with values from SUPABASE_URL / SUPABASE_ANON_KEY env vars. Only the
|
||||
// anon key is ever exposed to the browser. The service_role key stays server-
|
||||
// side (Supabase Studio / PostgREST container environment).
|
||||
window.MCCARS_CONFIG = {
|
||||
SUPABASE_URL: "http://localhost:54321",
|
||||
SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0",
|
||||
};
|
||||
Reference in New Issue
Block a user