isDev is false in dev

import { isDev } from "solid-js/web";
console.log({ isDev });
import { isDev } from "solid-js/web";
console.log({ isDev });
this logs false in dev. why? i'm using solidstart
2 Replies
AlexErrant
AlexErrant4w ago
honestly I just use Vite for this; import.meta.env.DEV
Hussein
Hussein4w ago
good idea i forgot that i used process.env.NODE_ENV should use this instead
Want results from more Discord servers?
Add your server