Loading data from network...
yarn run v1.22.22
$ "C:\Users\HP\Desktop\MY CODES\REACTJS\CHAT AUTOMATE\node_modules\.bin\tsx" apps/api/src/index.ts
C:\Users\HP\Desktop\MY CODES\REACTJS\CHAT AUTOMATE\apps\api\src\env.ts:38
export const env = envSchema.parse(process.env);
^
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"DATABASE_URL"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"JWT_SECRET"
],
"message": "Invalid input: expected string, received undefined"
}
]
at <anonymous> (C:\Users\HP\Desktop\MY CODES\REACTJS\CHAT AUTOMATE\apps\api\src\env.ts:38:30)
at ModuleJob.run (node:internal/modules/esm/module_job:345:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:651:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Node.js v22.19.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.