Skip to content

Commit

Permalink
Set 'static' as the default static folder (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen authored Mar 5, 2025
1 parent efe9804 commit 669f625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ Mesop is configured at the application level using environment variables.

### MESOP_STATIC_FOLDER

> **NOTE:** By default, this feature is not enabled, but in an upcoming release, the
default will be `static`.
> **NOTE:** This feature will be enabled by default in the next Mesop release and set to use `static` as the default static folder. You can still set it to another directory or `""` to disable the feature.
Allows access to static files from the Mesop server.

Expand Down
2 changes: 1 addition & 1 deletion mesop/server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Config(BaseModel):
state_session_backend_firestore_collection: str = "mesop_state_sessions"
state_session_backend_sql_connection_uri: str = ""
state_session_backend_sql_table: str = "mesop_state_sessions"
static_folder: str = ""
static_folder: str = "static"
static_url_path: str = "/static"

@property
Expand Down

0 comments on commit 669f625

Please sign in to comment.