fix: add Nginx configuration, Vite setup, and API service client for the ORCID frontend integration

This commit is contained in:
Alexis
2026-05-15 10:21:20 +02:00
parent f6b63d147a
commit aacb8be09d
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -17,6 +17,13 @@ export default defineConfig(({ mode }) => {
proxy: {
'/api': { target: proxyTarget, changeOrigin: true },
'/health': { target: proxyTarget, changeOrigin: true },
...(base !== '/' && {
[`${base}api`]: {
target: proxyTarget,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^${base}api`), '/api')
}
}),
},
},
}