Skip to content

Commit c6840c8

Browse files
committed
fix(server): wrong mobile root in dev env
1 parent 5f3dd86 commit c6840c8

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/deployment/front/affine.nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ server {
1515
set $mobile_root /app/dist/;
1616
set_by_lua $affine_env 'return os.getenv("AFFINE_ENV")';
1717

18-
if ($affine_env = "canary") {
18+
if ($affine_env = "dev") {
1919
set $mobile_root /app/mobile/;
2020
}
2121

.github/deployment/front/nginx.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,4 @@ http {
1212
'"$http_user_agent" "$http_x_forwarded_for"';
1313
access_log /var/log/nginx/access.log main;
1414
include /etc/nginx/conf.d/*.conf;
15-
16-
map "${AFFINE_ENV}" $mobile_root {
17-
dev /app/mobile/;
18-
default /app/dist/;
19-
}
2015
}

0 commit comments

Comments
 (0)