Error line in vscode when accesing env variable
Guys im get error when try configure drizzle config and use drizzle studio, im using vscode, nextjs 14, drizzle.
But if i change the port using static string like "12edn2rjq" and not process.env.PORT the error is disapear.
Thanks 🙏🏻.
1 Reply
process.env.*
are of type string and port here requires number
so just cast PORT
as number
or make sure it is a number by actually checking