From d2d69f459e6ca9c3ec0bea287cca3ed61b82ab1c Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 21 Jun 2024 04:27:02 +0200 Subject: [PATCH] fix(web): base url for frontend, fix copy path --- .tci | 4 ++-- web/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.tci b/.tci index c018bc33..7b837b83 100755 --- a/.tci +++ b/.tci @@ -14,6 +14,6 @@ echo "rebuilding frontend" cd web CARGO_BUILD_JOBS=2 /opt/bin/trunk build --release --public-url 'https://dev.upub.social/web' echo "deploying frontend" -rm /srv/http/upub/dev/* -mv ./dist/* /srv/http/upub/dev/ +rm /srv/http/upub/dev/web/* +mv ./dist/* /srv/http/upub/dev/web/ echo "done" diff --git a/web/src/lib.rs b/web/src/lib.rs index 18e7dfa8..cde0b8d6 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -15,7 +15,7 @@ pub use auth::Auth; pub mod prelude; -pub const URL_BASE: &str = "https://upub.alemi.dev"; +pub const URL_BASE: &str = "https://dev.upub.social"; pub const URL_PREFIX: &str = "/web"; pub const URL_SENSITIVE: &str = "https://cdn.alemi.dev/social/nsfw.png"; pub const DEFAULT_AVATAR_URL: &str = "https://cdn.alemi.dev/social/gradient.png";