dev or build when using new solid start
since
defineConfig
doesn't allow passing a callback anymore, how does else can I check whether I'm doing a production build or running a dev server?
previously I did this:
3 Replies
There might be some environment variables.
This should work. Plugins are added to multiple vinxi routers (client, ssr, server-fns etc.). In case you want to apply it to only one of them you can check config.router.name
I tried but I didn’t see anything useful there
I can always do
DEV=1 vinxi dev
in scripts but I was looking for something more convenient
interesting, thank you I’ll try it