We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d09549 commit edc9b00Copy full SHA for edc9b00
app2/vite.config.ts
@@ -10,7 +10,21 @@ export default defineConfig({
10
},
11
plugins: [sveltekit(), tailwindcss()],
12
build: { sourcemap: true },
13
- server: { allowedHosts: true },
+ server: {
14
+ allowedHosts: true,
15
+ proxy: {
16
+ "/api/union": {
17
+ target: "https://rest.union.build",
18
+ changeOrigin: true,
19
+ rewrite: (path) => path.replace(/^\/api\/union/, ""),
20
+ configure: (proxy) => {
21
+ proxy.on("proxyReq", (proxyReq) => {
22
+ proxyReq.setHeader("origin", "https://rest.union.build")
23
+ })
24
+ },
25
26
27
28
test: {
29
workspace: [
30
{
0 commit comments