mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
fix(server): wrong mobile root in dev env
This commit is contained in:
2
.github/deployment/front/affine.nginx.conf
vendored
2
.github/deployment/front/affine.nginx.conf
vendored
@@ -15,7 +15,7 @@ server {
|
|||||||
set $mobile_root /app/dist/;
|
set $mobile_root /app/dist/;
|
||||||
set_by_lua $affine_env 'return os.getenv("AFFINE_ENV")';
|
set_by_lua $affine_env 'return os.getenv("AFFINE_ENV")';
|
||||||
|
|
||||||
if ($affine_env = "canary") {
|
if ($affine_env = "dev") {
|
||||||
set $mobile_root /app/mobile/;
|
set $mobile_root /app/mobile/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
5
.github/deployment/front/nginx.conf
vendored
5
.github/deployment/front/nginx.conf
vendored
@@ -12,9 +12,4 @@ http {
|
|||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
access_log /var/log/nginx/access.log main;
|
access_log /var/log/nginx/access.log main;
|
||||||
include /etc/nginx/conf.d/*.conf;
|
include /etc/nginx/conf.d/*.conf;
|
||||||
|
|
||||||
map "${AFFINE_ENV}" $mobile_root {
|
|
||||||
dev /app/mobile/;
|
|
||||||
default /app/dist/;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user