fix: serve design studio through the component app production route

This commit is contained in:
Clintchiz committed 2026-10-19 13:34:08 +05:30
1 parent 3987ddbcfe
commit 9a6a2e0a8d
11 files changed
+174 -47

No files matched your search

+5 -14
View File
@@ -1,14 +1,5 @@
# Include INSIDE the existing component site's nginx server block.
# The existing location / continues to proxy the component app on its usual port.
location = /design-studio {
return 308 /design-studio/;
}
location /design-studio/ {
# Preserve the path and the external Host so same-origin validation works.
proxy_pass http://127.0.0.1:4320;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_read_timeout 60s;
client_max_body_size 2m;
}
# Studio is now mounted in the component app on its existing port.
# No separate nginx location is required.
# Remove the old /design-studio/ location that proxied to port 4320.
# Let the existing location / forward Studio and normal pages to the same app.
# Preserve Host, Origin and X-Forwarded-Proto in that existing proxy location.
Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB