Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(server): wrong mobile root in dev env

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