S
SolidJS5mo ago
Hussein

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
AlexErrant4mo ago
honestly I just use Vite for this; import.meta.env.DEV
Hussein
HusseinOP4mo 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