mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-22 09:13:18 +03:00
fix(server): wrong mobile root in dev env
This commit is contained in:
parent
5f3dd867ad
commit
c6840c8674
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_by_lua $affine_env 'return os.getenv("AFFINE_ENV")';
|
||||
|
||||
if ($affine_env = "canary") {
|
||||
if ($affine_env = "dev") {
|
||||
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"';
|
||||
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/;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user