Skip to content

Commit

Permalink
Blen.fix deployment issue fix JavaScript files are being served with …
Browse files Browse the repository at this point in the history
…the wrong MIME type avoid catch-all handler
  • Loading branch information
blenassefa2 committed Sep 26, 2024
1 parent f7ad313 commit 92d4baa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ handlers:
- url: /assets
static_dir: dist/hacks-website/assets

- url: /(.*\.js)
static_files: dist/hacks-website/\1
upload: dist/hacks-website/(.*\.js)
mime_type: application/javascript

- url: /(.*)
static_files: dist/hacks-website/index.html
upload: dist/hacks-website/index.html
secure: always

- url: /(.*\.js)
static_files: dist/hacks-website/\1
upload: dist/hacks-website/(.*\.js)
mime_type: application/javascript

0 comments on commit 92d4baa

Please sign in to comment.