Skip to content

Conversation

wch
Copy link
Collaborator

@wch wch commented Mar 1, 2024

Closes #984. This PR does the following for Shiny Express apps:

  • Automatically serves a www subdirectory, mounting it at /
  • Adds a function express.app_opts(), which allows setting options that get passed to the App() constructor. This includes static_assets and debug.

And it adds this change for Shiny in general:

  • In the App() constructor, the static_assets are now sorted by their mount point, from longest string to shortest before actually mounting them. This because previously, if an app had mounts "/" and "/foo", specified in that order, it would never actually serve anything in the "/foo" mount because it would search the "/" mount first.

@wch wch force-pushed the express-static-assets branch from f9c06d8 to 91a72cc Compare March 1, 2024 20:18
@wch wch merged commit 84f872b into main Mar 1, 2024
@wch wch deleted the express-static-assets branch March 1, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Express mode should auto opt into using the www folder
2 participants