Use environment variable in defineConfig
I have an
Before SolidStart 0.4, to define the proxy to this API host, I defined in
Starting from SolidStart 0.4, the callback is no longer used. I tried the following
But the server can not recognize the
.env.local fileBefore SolidStart 0.4, to define the proxy to this API host, I defined in
vite.config.js like soStarting from SolidStart 0.4, the callback is no longer used. I tried the following
But the server can not recognize the
process.env.VITE_API_HOST. How can I use environment variables in this case?