FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Upgrade Turbopack HMR websocket in nextjs proxy by RoWaBo · Pull Request #90 · reload/https-proxy · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .template  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /_next/webpack-hmr {
# Dev HMR websocket. Turbopack (Next 16 default) uses /_next/hmr, webpack
# uses /_next/webpack-hmr. A failed upgrade breaks client hydration, so
# cover both. Regex beats the `location /` prefix, so these still match here.
location ~ ^/_next/(webpack-)?hmr {
proxy_pass ${NGINX_PROXY_PASS};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
Expand Down
Loading

Back | FazBrowse Home | New Git URL