fix(web): base url for frontend, fix copy path

This commit is contained in:
əlemi 2024-06-21 04:27:02 +02:00
parent 6c781f4c9a
commit d2d69f459e
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 3 additions and 3 deletions

4
.tci
View file

@ -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"

View file

@ -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";