Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
The3ven opened this issue Mar 4, 2024 · 1 comment
Open

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

The3ven opened this issue Mar 4, 2024 · 1 comment

Comments

@The3ven
Copy link

The3ven commented Mar 4, 2024

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="NEXT_PUBLIC";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.experimental__runtimeEnv};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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants