From c6840c8674f2d31fc82d0093ccb30aae3b265195 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 5 Sep 2024 11:18:16 +0800 Subject: [PATCH] fix(server): wrong mobile root in dev env --- .github/deployment/front/affine.nginx.conf | 2 +- .github/deployment/front/nginx.conf | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/deployment/front/affine.nginx.conf b/.github/deployment/front/affine.nginx.conf index 95dc4d0b07..fffed2fe76 100644 --- a/.github/deployment/front/affine.nginx.conf +++ b/.github/deployment/front/affine.nginx.conf @@ -15,7 +15,7 @@ server { set $mobile_root /app/dist/; set_by_lua $affine_env 'return os.getenv("AFFINE_ENV")'; - if ($affine_env = "canary") { + if ($affine_env = "dev") { set $mobile_root /app/mobile/; } diff --git a/.github/deployment/front/nginx.conf b/.github/deployment/front/nginx.conf index 87c196f3d8..e982808a1b 100644 --- a/.github/deployment/front/nginx.conf +++ b/.github/deployment/front/nginx.conf @@ -12,9 +12,4 @@ http { '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; include /etc/nginx/conf.d/*.conf; - - map "${AFFINE_ENV}" $mobile_root { - dev /app/mobile/; - default /app/dist/; - } }