From 719a1e81d5af5c872f79f11f462e4b30211f80b7 Mon Sep 17 00:00:00 2001 From: IwanIDev Date: Fri, 20 Mar 2026 13:39:53 +0000 Subject: Add local development support with Docker for Drupal and configure API proxy --- vite.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts index 149038b..32cbb6c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,4 +12,13 @@ export default defineConfig({ }), tailwindcss(), ], + server: { + proxy: { + '/drupal-api': { + target: 'http://localhost:8081', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/drupal-api/, ''), + }, + }, + }, }) -- cgit