From 92d4baaf02561e91c611f42f326fa591b9e92559 Mon Sep 17 00:00:00 2001 From: Blen Date: Thu, 26 Sep 2024 09:51:21 +0300 Subject: [PATCH] Blen.fix deployment issue fix JavaScript files are being served with the wrong MIME type avoid catch-all handler --- app.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app.yaml b/app.yaml index d03e5a5..dbfa166 100644 --- a/app.yaml +++ b/app.yaml @@ -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 \ No newline at end of file + \ No newline at end of file