diff options
| author | IwanIDev <iwan@iwani.dev> | 2026-03-20 13:39:53 +0000 |
|---|---|---|
| committer | IwanIDev <iwan@iwani.dev> | 2026-03-20 13:39:53 +0000 |
| commit | 719a1e81d5af5c872f79f11f462e4b30211f80b7 (patch) | |
| tree | 5f6a3380481c2c853f0b646ea644515114377466 /vite.config.ts | |
| parent | a706dcf6a9b91ef2c3d1e1d28449b9b8e0e8187d (diff) | |
Add local development support with Docker for Drupal and configure API proxy
Diffstat (limited to 'vite.config.ts')
| -rw-r--r-- | vite.config.ts | 9 |
1 files changed, 9 insertions, 0 deletions
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/, ''), + }, + }, + }, }) |
