defineConfig import.meta.dev
Hi Everybody!
I need to archive a (theoretically) easy thing.
In my defineConfig inside of app.config.ts, I need to resolve a variable based on if I'm running the server with bun run dev or with bun start.
The problem is that, I can't find the environment variable that tells if I'm running as DEV or as PROD.
In fact import.meta.env doesn't seem to be exporting a DEV or PROD variable.
Is there any way for archiving this?
Sharing the code down here
I need to archive a (theoretically) easy thing.
In my defineConfig inside of app.config.ts, I need to resolve a variable based on if I'm running the server with bun run dev or with bun start.
The problem is that, I can't find the environment variable that tells if I'm running as DEV or as PROD.
In fact import.meta.env doesn't seem to be exporting a DEV or PROD variable.
Is there any way for archiving this?
Sharing the code down here
