File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { readFileSync , existsSync } from "node:fs" ;
22import { join , dirname , basename } from "node:path" ;
3+ import process from "node:process" ;
4+ import console from "node:console" ;
35import { fileURLToPath } from "node:url" ;
46import dotenv from "dotenv" ;
57
@@ -14,7 +16,6 @@ const findRoot = () => {
1416 }
1517 return dir ;
1618} ;
17-
1819export const getVariant = ( ) => {
1920 const useDbArgPos = ( process . argv || [ ] ) . indexOf ( "--use-db" ) ;
2021 let variant =
@@ -79,9 +80,11 @@ export const envContents = () => {
7980 if ( ! path ) {
8081 // Fallback to process.env when running in production environments
8182 const raw = {
83+ /* eslint-disable @typescript-eslint/naming-convention */
8284 SUPABASE_URL : process . env . SUPABASE_URL ,
8385 SUPABASE_PUBLISHABLE_KEY : process . env . SUPABASE_PUBLISHABLE_KEY ,
8486 NEXT_API_ROOT : process . env . NEXT_API_ROOT ,
87+ /* eslint-enable @typescript-eslint/naming-convention */
8588 } ;
8689 return Object . fromEntries ( Object . entries ( raw ) . filter ( ( [ , v ] ) => ! ! v ) ) ;
8790 }
You can’t perform that action at this time.
0 commit comments