From 97051e0e463620c613116df643e4695e0779a536 Mon Sep 17 00:00:00 2001 From: ReLoia Date: Sun, 14 Jun 2026 22:16:44 +0200 Subject: [PATCH] chore: add dev proxy configuration for api and uploads --- nuxt.config.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 387a267..023216d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -35,6 +35,29 @@ export default defineNuxtConfig({ ] }, + nitro: { + devProxy: { + '/api/v1': { + target: 'https://bk.visione.studentindipendenti.it/api/v1', + changeOrigin: true, + headers: { + host: 'bk.visione.studentindipendenti.it', + origin: 'https://visione.studentindipendenti.it', + referer: 'https://visione.studentindipendenti.it/' + } + }, + '/uploads': { + target: 'https://bk.visione.studentindipendenti.it/uploads', + changeOrigin: true, + headers: { + host: 'bk.visione.studentindipendenti.it', + origin: 'https://visione.studentindipendenti.it', + referer: 'https://visione.studentindipendenti.it/' + } + } + } + }, + app: { head: { link: [