Skip to content

Commit

Permalink
Add redirects for webp images
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Gupta (@vipulgupta2048) <[email protected]>
  • Loading branch information
vipulgupta2048 committed Aug 2, 2024
1 parent cc99425 commit e8b12ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ EXTERNAL_DOCS = /.*(python-sdk|node-sdk|balena-cli|supervisor-api|rollbacks|upda
FB_APP_ID = '221218511385682'

DOMAIN = "https://#{process.env.DOMAIN || 'balena.io'}"

# Adding DEPLOYMENT_URL for flowzone.yml and link checking
DEPLOYMENT_URL = "#{process.env.DEPLOYMENT_URL || 'https://docs.balena.io'}"
MAIN_MENU_LINKS = [
# {
Expand Down
4 changes: 2 additions & 2 deletions config/redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@
# https://developers.cloudflare.com/pages/platform/redirects/
# Dynamic redirects

/img/:imagepath/*.png/ /img/:imagepath/:splat.webp
/img/:imagepath/*.png /img/:imagepath/:splat.webp
/img/*.png/ /img/:imagepath/:splat.webp
/img/*.png /img/:imagepath/:splat.webp
/deployment/network/:version/ /reference/OS/network/
/deployment/network/:version /reference/OS/network/
/understanding/understanding-devices/:version/ /reference/OS/overview/
Expand Down

0 comments on commit e8b12ea

Please sign in to comment.