fix(server): wrong mobile root in dev env

This commit is contained in:
LongYinan 2024-09-05 11:18:16 +08:00
parent 5f3dd867ad
commit c6840c8674
No known key found for this signature in database
GPG Key ID: C3666B7FC82ADAD7
2 changed files with 1 additions and 6 deletions

View File

@ -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/;
}

View File

@ -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/;
}
}