Skip to content

Commit c1ad13f

Browse files
AlexLippCopilot
andauthored
Update vite.config.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b5d4a42 commit c1ad13f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export default defineConfig({
1919
'/api/scottish-water': {
2020
target: 'https://api.scottishwater.co.uk',
2121
changeOrigin: true,
22-
rewrite: () => '/overflow-event-monitoring/v1/near-real-time',
22+
rewrite: (path) =>
23+
path.replace(
24+
/^\/api\/scottish-water/,
25+
'/overflow-event-monitoring/v1/near-real-time',
26+
),
2327
},
2428
},
2529
},

0 commit comments

Comments
 (0)