Skip to content

Commit

Permalink
Add MIME type for JavaScript files in app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarshall committed Nov 4, 2024
1 parent 48141a5 commit 1e2a810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py-src/data_formulator/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
load_dotenv(os.path.join(APP_ROOT, 'openai-keys.env'))

import os
import mimetypes
mimetypes.add_type('application/javascript', '.js')

app = Flask(__name__, static_url_path='', static_folder=os.path.join(APP_ROOT, "dist"))
CORS(app)
Expand Down

0 comments on commit 1e2a810

Please sign in to comment.