https://github.com/secondfry/http-proxy-middleware-issue-368-repro
https://github.com/secondfry/http-proxy-middleware-issue-368-repro
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/secondfry/http-proxy-middleware-issue-368-repro
- Owner: secondfry
- Created: 2024-01-16T11:02:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-16T11:04:00.000Z (over 2 years ago)
- Last Synced: 2025-12-27T01:59:16.187Z (6 months ago)
- Language: JavaScript
- Size: 519 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Repro for https://github.com/chimurai/http-proxy-middleware/issues/368
```
# starting from root
cd sveltekit
npm install
npm run dev
# starting from root
cd express
npm install
node index.js
```
Visiting http://localhost:8080 will result in following output:
```
% node index.js
[HPM] Proxy created: / -> http://localhost:5173/about
Express listening on http://localhost:8080
User request for: /
User request for: /about
User request for: /src/lib/images/svelte-logo.svg
User request for: /src/lib/images/github.svg
User request for: /src/lib/images/svelte-logo.svg
User request for: /src/lib/images/github.svg
User request for: /node_modules/@sveltejs/kit/src/runtime/client/entry.js
User request for: /@fs/Users/secondfry/sources/http-proxy-middleware-issue-368-repro/sveltekit/.svelte-kit/generated/client/app.js
User request for: /favicon.png
```
Due to `http-proxy-middleware` adding trailing slash to `target`
and SvelteKit redirecting to URL without that trailing slash.