mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Only use basehref
Will allow us to use the localize option
This commit is contained in:
parent
3f87a46f1d
commit
8cc56c7fdd
3 changed files with 37 additions and 27 deletions
|
@ -76,10 +76,11 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
|
|||
# TODO: remove when the project will use runtime translations
|
||||
pre_build_hook "$lang"
|
||||
|
||||
npm run ng build -- --output-path "dist/build" --deploy-url "/client/$lang/" --prod --configuration="$lang"
|
||||
npm run ng build -- --prod --configuration="$lang"
|
||||
|
||||
mv "dist/build/$key" "dist/$lang"
|
||||
rmdir "dist/build"
|
||||
if [ ! "$lang" = "$key" ]; then
|
||||
mv "dist/$key" "dist/$lang"
|
||||
fi
|
||||
|
||||
# Do not duplicate assets
|
||||
rm -r "./dist/$lang/assets"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue