Skip to content

Commit

Permalink
Enable loading fonts in App Engine configuration
Browse files Browse the repository at this point in the history
Otherwise the final handler is triggered and provides index.html which
confuses the font loader with the errors
- Failed to decode downloaded font
- OTS parsing error: invalid sfntVersion
  • Loading branch information
pylipp committed Feb 6, 2025
1 parent e81aca0 commit 579da62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions back/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ handlers:
secure: always
static_files: front-build/assets/\1
upload: front-build/assets/(.*)
- url: /(.*\.(ico|png|svg))$
- url: /(.*\.(ico|png|svg|woff2))$
secure: always
static_files: front-build/\1
upload: front-build/(.*\.(ico|png|svg))$
upload: front-build/(.*\.(ico|png|svg|woff2))$
- url: /(.*)
secure: always
static_files: front-build/index.html
Expand Down

2 comments on commit 579da62

@pylipp
Copy link
Contributor Author

@pylipp pylipp commented on 579da62 Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fhenrich33
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.0: enable loading fonts in App Engine

Forgot about GCP config, sorry about that 😅

Please sign in to comment.