Add workaround in vite.config

This commit is contained in:
Marco Realacci 2022-12-22 16:28:15 +01:00
parent c0c6dccdec
commit 3e8901925b

View file

@ -19,7 +19,7 @@ export default defineConfig(({command, mode, ssrBuild}) => {
}; };
} else { } else {
ret.define = { ret.define = {
"__API_URL__": JSON.stringify("/"), "__API_URL__": JSON.stringify("http://localhost:3000"),
}; };
} }
return ret; return ret;