Files
pack/examples
Michael BiancoandGitHub 8fd6a9226b feat: add configurable index fallback for static files (#534)
* feat(staticfile): add configurable index fallback for SPAs

- Fixes #https://github.com/railwayapp/railpack/issues/533
- Introduce index_fallback option in Staticfile config to toggle SPA routing.
- Improve root directory detection by trimming whitespace from environment variables and configuration.

* feat: add index fallback example for static files

- Create a new example directory demonstrating the index_fallback configuration.
- Include a test case to verify that non-existent routes correctly serve index.html.

Generated-by: aiautocommit

* test: update snapshots

Generated-by: aiautocommit

* test: update static file config and index test cases

Generated-by: aiautocommit

* test: add SPA index fallback verification to test suite

Generated-by: aiautocommit

* docs: document RAILPACK_VERBOSE and clarify Staticfile config

Generated-by: aiautocommit
2026-03-28 09:34:59 -06:00
..
2025-11-20 16:06:15 -07:00
2025-11-20 16:06:15 -07:00
2025-11-06 10:29:13 -07:00
2025-10-28 09:49:27 -06:00
2025-03-10 17:34:45 -04:00
2025-03-11 01:21:35 -04:00
2025-02-23 21:23:42 -05:00
2025-06-13 19:13:29 -04:00
2025-03-26 09:07:21 -07:00
2025-03-26 09:07:21 -07:00
2025-02-25 23:18:29 -05:00