How to set up a vite dev proxy with Start and Vinxi?
I am trying to figure out how to migrate a dev proxy for api requests in solidstart. I have a working config just for a normal solidjs app which looks like the following in
vite.config.ts
and I'm trying to figure out how to modify the app.config.ts
file provided by Start to do something similar. Right now my starter file looks like this:
2 Replies
I believe you can just copy your entire Vite config to the
vite
key in your app.config.ts
yeah, the aspect that confused me was the existence of
mode
and the function accepting an object instead of a function. But yes in general it seems that entire server section needs to go in and I need to get the env through another method.
thank you!