Skip to content

Commit

Permalink
fix: Nextjs chunk loading error
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Sep 14, 2023
1 parent c7769a5 commit ef6571b
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions storage/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,7 @@ server {
proxy_cache_bypass $http_upgrade;
}

location ~ ^/(?<subpath>(_next).*)$ {
proxy_pass http://ui_proxy/$subpath$is_args$args;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
access_log off;
}

location ~ ^/(?<subpath>(api|eklenti|broadcasting|css|js|hasync|upload|upload_info).*)$ {
location ~ ^/(?<subpath>(api|eklenti|broadcasting|css|js|hasync|upload|upload_info|fonts|turkce.json|english.json).*)$ {
proxy_pass https://api_proxy/$subpath$is_args$args;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
Expand Down Expand Up @@ -154,10 +144,6 @@ server {
deny all;
}

location ~* .(eot|otf|ttf|woff|woff2) {
add_header Access-Control-Allow-Origin *;
}

error_page 403 /;
error_page 502 /502.html;
server_tokens off;
Expand Down Expand Up @@ -229,9 +215,6 @@ server {
location ~ /\.ht {
deny all;
}
location ~* .(eot|otf|ttf|woff|woff2) {
add_header Access-Control-Allow-Origin *;
}
more_set_headers 'Server: LIMAN MYS';
ssl_certificate /liman/certs/liman.crt;
ssl_certificate_key /liman/certs/liman.key;
Expand Down

0 comments on commit ef6571b

Please sign in to comment.