Using Hono

Hi. I am using Hono for my backend but i get an error process is not defined when trying to use session. I assume this is because its trying to get my env variables but Hono does not support process.env
3 Replies
Robi
Robi8mo ago
have you tried to use https://www.npmjs.com/package/dotenv ? im not familiar with hono but i also had process is not defined till i used it
npm
dotenv
Loads environment variables from .env file. Latest version: 16.4.5, last published: 8 months ago. Start using dotenv in your project by running npm i dotenv. There are 49941 other projects in the npm registry using dotenv.
No description
Faris
FarisOP8mo ago
working now thanks
Robi
Robi8mo ago
Super

Did you find this page helpful?