Skip to content

Commit

Permalink
Fix flask backend mimetype for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
elro444 committed Aug 15, 2023
1 parent f053551 commit 6eae79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/reactpy/reactpy/backend/flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def send_assets_dir(path: str = "") -> Any:

@api_blueprint.route(f"/{MODULES_PATH.name}/<path:path>")
def send_modules_dir(path: str = "") -> Any:
return send_file(safe_web_modules_dir_path(path))
return send_file(safe_web_modules_dir_path(path), mimetype='text/javascript')

index_html = read_client_index_html(options)

Expand Down

0 comments on commit 6eae79c

Please sign in to comment.