fix(web): base url for frontend, fix copy path
This commit is contained in:
parent
6c781f4c9a
commit
d2d69f459e
2 changed files with 3 additions and 3 deletions
4
.tci
4
.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"
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue