mirror of
https://github.com/YunoHost-Apps/lingva_ynh.git
synced 2024-09-03 19:36:20 +02:00
perbaiki url untuk sub-jalur
This commit is contained in:
parent
dff44abaa7
commit
1c8a26e766
2 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,8 @@ then
|
|||
fi
|
||||
|
||||
ynh_replace_string --match_string="module.exports = { basePath: '$old_next_path', };" --replace_string="module.exports = { basePath: '$new_next_path', };" --target_file="$install_dir/next.config.js"
|
||||
|
||||
ynh_replace_string --match_string="src={useColorModeValue(\"$old_next_path/banner_light.svg\", \"$old_next_path/banner_dark.svg\")}" --replace_string="src={useColorModeValue(\"$new_next_path/banner_light.svg\", \"$new_next_path/banner_dark.svg\")}" --target_file="$install_dir/components/Header.tsx"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -56,6 +56,8 @@ fi
|
|||
|
||||
echo "module.exports = { basePath: '$next_path', };" >> "$install_dir/next.config.js"
|
||||
|
||||
ynh_replace_string --match_string="src={useColorModeValue("/banner_light.svg", "/banner_dark.svg")}" --replace_string="src={useColorModeValue("$next_path/banner_light.svg", "$next_path/banner_dark.svg")} --target_file="$install_dir/components/Header.tsx"
|
||||
|
||||
#=================================================
|
||||
# BUILD AND INSTALL THE APP
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue