galnir / Master-Bot

A Discord music bot and dashboard with slash commands, playlist support, Spotify, music quiz, saved playlists, lyrics, gifs and more
MIT License
464 stars 373 forks source link

My Bot Crash, I`m not able to deploy it on my computer #816

Open The3ven opened 6 months ago

The3ven commented 6 months ago

SPECS : - image

Error : -

@master-bot/dashboard:dev: @master-bot/dashboard:dev: ❌ Invalid environment variables: { NEXTAUTH_URL: [ 'Invalid url' ] } @master-bot/dashboard:dev: file:///home/FireArch/Discord_Bot/node_modules/.pnpm/@t3-oss+env-nextjs@0.7.1_typescript@5.3.2_zod@3.22.4/node_modules/@t3-oss/env-nextjs/dist/index.mjs:1 @master-bot/dashboard:dev: import{z as a}from"zod";function f(e){let r=e.runtimeEnvStrict??e.runtimeEnv??process.env;if(e.emptyStringAsUndefined??!1)for(let[t,n]of Object.entries(r))n===""&&delete r[t];if(e.skipValidation)return r;let i=typeof e.client=="object"?e.client:{},o=typeof e.server=="object"?e.server:{},s=typeof e.shared=="object"?e.shared:{},d=a.object(i),T=a.object(o),l=a.object(s),v=e.isServer??typeof window>"u",p=d.merge(l),y=T.merge(l).merge(d),c=v?y.safeParse(r):p.safeParse(r),m=e.onValidationError??(t=>{throw console.error("\u274C Invalid environment variables:",t.flatten().fieldErrors),new Error("Invalid environment variables")}),u=e.onInvalidAccess??(t=>{throw new Error("\u274C Attempted to access a server-side environment variable on the client")});return c.success===!1?m(c.error):new Proxy(c.data,{get(t,n){if(!(typeof n!="string"||n==="esModule"||n==="$$typeof"))return!v&&e.clientPrefix&&!n.startsWith(e.clientPrefix)&&l.shape[n]===void 0?u(n):t[n]}})}var x="NEXTPUBLIC";function P(e){let r=typeof e.client=="object"?e.client:{},i=typeof e.server=="object"?e.server:{},o=e.shared,s=e.runtimeEnv?e.runtimeEnv:{...process.env,...e.experimentalruntimeEnv};return f({...e,shared:o,client:r,server:i,clientPrefix:x,runtimeEnv:s})}export{P as createEnv}; @master-bot/dashboard:dev:

Full Logs :- https://pastebin.com/KrhgZjHk

Please Help me

Natemo2625 commented 6 months ago

The error says exactly what's wrong, you provided an invalid nextauth URL. The readme should tell you what you need to do for nextauth urls if I remember correctly, haven't read it in a bit.