Vinxi conditional config by mode
Is there a way to set up
app.config.ts
to be aware of the mode in which Vinxi is being run?
When using Vite directly, the following is possible: https://vite.dev/config/#conditional-config
It does not appear that SolidStart's defineConfig
is similarly capable of taking a function that is aware of the mode in which Vinxi is being run.7 Replies
I think you can check here
Nitro seems to have each handler according to each mode
:Worry_Think:
It does not appear that SolidStart's defineConfig
is similarly capable of taking a function that is aware of the mode in which Vinxi is being run.
Yeah, currently vinxi only expose the router type through vite({ router })
I think you sort of have to workaround using env varsThat doesn't actually do what I want to achieve
The environment is a different concept from how Vinxi (Vite) has been invoked
But maybe I am missing something here
it definitely makes sense to implement this feature though but assuming you don't have time and effort for that, the workaround i meant is like this
Unfortunately, I am holding another technology stack together with spit and glue right now and will not find time to work on this Vinxi enhancement in the near future 😅