Closed Sinfolke closed 2 months ago
Just add "NODE_ENV=development" to .env file. In production mode it'll be automatically replaced to "NODE_ENV=production"
Thank you, i found the env.example file in your project where there are such properties: DEV_BOT_TOKEN= PROD_BOT_TOKEN=
USERBOT_API_ID= USERBOT_API_HASH= USERBOT_PHONE_NUMBER=
BOT_ADMIN_ID= SUPABASE_PROJECT_URL= SUPABASE_API_KEY=
NODE_ENV=development
I have made .env file as above and get one more error. I guess i have to find somewhere values to all those properties
[nodemon] starting node -r tsconfig-paths/register -r ts-node/register ./src/index.ts
{ tasks: [] }
C:\anonymous\node_modules\@supabase\supabase-js\src\SupabaseClient.ts:74
if (!supabaseUrl) throw new Error('supabaseUrl is required.')
^
Error: supabaseUrl is required.
at new SupabaseClient (C:\anonymous\node_modules\@supabase\supabase-js\src\SupabaseClient.ts:74:29)
at createClient (C:\anonymous\node_modules\@supabase\supabase-js\src\index.ts:40:10)
at Object.
You can comment out the lines of code where supabase api is used: in config file, saveUser function definition and its usage, and the lines where supabase initiates But then, the users will not be stored in db
Issue was closed due to inactivity. If the issue persists or requires further attention, feel free to reopen it or create a new one. Thank you!
I have tryed to run it locally but it requires some key that i do not have. I checked the telegram it did not send me any key.