@@ -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} ) ;
0 commit comments