Skip to content
This repository was archived by the owner on Apr 10, 2023. It is now read-only.

Commit 04ff0d8

Browse files
Update dependency @nuxtjs-alt/proxy to v2 (#249)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: MiniDigger | Martin <admin@benndorf.dev>
1 parent 0f5c051 commit 04ff0d8

3 files changed

Lines changed: 42 additions & 39 deletions

File tree

frontend/nuxt.config.ts

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -67,37 +67,40 @@ export default defineNuxtConfig({
6767
},
6868
// this is fucking ugly but else it doesn't resolve the env at runtime...
6969
proxy: {
70-
"/oauth/login": {
71-
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
72-
changeOrigin: true,
73-
},
74-
"/oauth/handleConsent": {
75-
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
76-
changeOrigin: true,
77-
},
78-
"/oauth/logout": {
79-
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
80-
changeOrigin: true,
81-
},
82-
"/oauth/frontchannel-logout": {
83-
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
84-
changeOrigin: true,
85-
},
86-
"/avatar": {
87-
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
88-
changeOrigin: true,
89-
},
90-
"/image": {
91-
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
92-
changeOrigin: true,
93-
},
94-
"/sync": {
95-
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
96-
changeOrigin: true,
97-
},
98-
"/settings": {
99-
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
100-
changeOrigin: true,
101-
},
70+
enableProxy: true,
71+
proxies: {
72+
"/oauth/login": {
73+
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
74+
changeOrigin: true,
75+
},
76+
"/oauth/handleConsent": {
77+
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
78+
changeOrigin: true,
79+
},
80+
"/oauth/logout": {
81+
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
82+
changeOrigin: true,
83+
},
84+
"/oauth/frontchannel-logout": {
85+
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
86+
changeOrigin: true,
87+
},
88+
"/avatar": {
89+
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
90+
changeOrigin: true,
91+
},
92+
"/image": {
93+
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
94+
changeOrigin: true,
95+
},
96+
"/sync": {
97+
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
98+
changeOrigin: true,
99+
},
100+
"/settings": {
101+
configure: (proxy, options) => options.target = process.env.BACKEND_HOST || process.env.NITRO_BACKEND_HOST || "http://localhost:8081",
102+
changeOrigin: true,
103+
},
104+
}
102105
},
103106
});

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"devDependencies": {
1616
"@iconify-json/mdi": "1.1.34",
1717
"@intlify/vite-plugin-vue-i18n": "6.0.3",
18-
"@nuxtjs-alt/proxy": "1.3.8",
18+
"@nuxtjs-alt/proxy": "2.0.4",
1919
"@nuxtjs/eslint-config-typescript": "11.0.0",
2020
"@types/debug": "4.1.7",
2121
"@types/nprogress": "0.2.0",

frontend/pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)