Skip to content

Commit d28137b

Browse files
fix: remove import.meta usage for API_URL and SUPABASE constants
1 parent 3a14539 commit d28137b

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

refine-vite/plugins/data-provider-custom-json-rest/extend.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ const base = {
77
variables: ["VITE_API_URL=https://api.fake-rest.refine.dev"],
88
},
99
_constants: {
10-
export: [
11-
'export const API_URL = import.meta.env.VITE_API_URL || "https://api.fake-rest.refine.dev";',
12-
],
10+
export: ['export const API_URL = "https://api.fake-rest.refine.dev";'],
1311
},
1412
};
1513

refine-vite/plugins/data-provider-supabase/extend.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const base = {
2525
},
2626
_constants: {
2727
export: [
28-
'export const SUPABASE_URL = import.meta.env.VITE_API_URL || "https://iwdfzvfqbtokqetmbmbp.supabase.co";',
29-
'export const SUPABASE_KEY = import.meta.env.VITE_SUPABASE_API_KEY || "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYzMDU2NzAxMCwiZXhwIjoxOTQ2MTQzMDEwfQ._gr6kXGkQBi9BM9dx5vKaNKYj_DJN1xlkarprGpM_fU";',
28+
'export const SUPABASE_URL = "https://iwdfzvfqbtokqetmbmbp.supabase.co";',
29+
'export const SUPABASE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYzMDU2NzAxMCwiZXhwIjoxOTQ2MTQzMDEwfQ._gr6kXGkQBi9BM9dx5vKaNKYj_DJN1xlkarprGpM_fU";',
3030
],
3131
},
3232
};

0 commit comments

Comments
 (0)