Michael Bianco and GitHub
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
..
2026-01-17 12:08:44 -07:00
2025-11-20 15:33:10 -07:00
2025-11-20 16:06:15 -07:00
2025-11-20 16:06:15 -07:00
2025-10-23 16:41:17 -06:00
2026-01-17 11:32:40 -07:00
2026-01-15 09:49:44 -07:00
2025-11-06 10:29:13 -07:00
2026-01-15 09:49:44 -07:00
2026-01-14 16:00:27 -07:00
2026-01-15 09:49:44 -07:00
2025-10-28 09:49:27 -06:00
2025-10-28 09:49:27 -06:00
2025-11-11 13:55:18 -07:00
2025-11-11 21:00:34 -07:00
2025-11-11 21:00:34 -07:00
2025-11-11 21:00:34 -07:00
2025-03-10 17:34:45 -04:00
2025-10-21 11:11:30 -06:00
2025-09-09 19:09:46 -06:00
2025-11-28 19:03:14 -05:00
2026-01-15 09:49:44 -07:00
2026-01-15 09:49:44 -07:00
2026-01-15 09:49:44 -07:00
2026-03-08 06:44:19 -06:00
2026-03-12 12:05:18 -06:00
2026-01-17 12:08:44 -07:00
2026-01-17 12:08:44 -07:00
2025-11-20 15:33:10 -07:00
2026-01-15 09:49:44 -07:00
2026-03-14 11:38:57 -06:00
2026-03-14 11:38:57 -06:00
2026-01-15 09:49:44 -07:00
2025-11-20 15:33:10 -07:00
2025-11-20 15:33:10 -07:00
2026-01-17 08:40:43 -07:00
2026-01-15 09:49:44 -07:00
2025-11-20 15:33:10 -07:00
2025-11-20 15:33:10 -07:00
2026-01-17 08:40:43 -07:00
2025-11-20 15:33:10 -07:00
2026-03-18 13:56:50 -06:00
2026-01-15 09:49:44 -07:00
2025-10-21 11:11:30 -06:00
2026-01-15 09:49:44 -07:00
2026-01-17 08:40:43 -07:00
2026-01-15 09:49:44 -07:00
2026-03-28 09:34:59 -06:00
2026-01-15 09:49:44 -07:00
2025-10-23 16:41:17 -06:00
2025-09-16 16:09:21 -04:00
2025-11-20 15:33:10 -07:00
2026-01-16 08:55:11 -07:00
2025-11-20 15:33:10 -07:00
2025-11-20 15:33:10 -07:00
2025-11-20 15:33:10 -07:00
2026-01-17 08:40:43 -07:00
2026-01-15 09:49:44 -07:00
2026-01-15 09:49:44 -07:00
2025-03-11 01:21:35 -04:00
2025-10-23 16:41:17 -06:00
2026-01-07 16:24:00 -05:00
2026-03-12 15:49:01 -06:00
2026-01-15 09:49:44 -07:00
2026-01-15 09:49:44 -07:00
2026-01-15 09:49:44 -07:00
2025-10-21 11:11:30 -06:00
2026-03-24 08:00:02 -06:00
2026-03-12 15:49:01 -06:00
2026-01-15 11:32:30 -07:00
2025-11-22 10:19:40 -07:00
2025-02-23 21:23:42 -05:00
2026-03-12 12:37:51 -06:00
2025-02-23 21:23:42 -05:00
2025-09-11 09:19:44 -06:00
2026-01-15 11:32:30 -07:00
2025-06-13 19:13:29 -04:00
2026-01-15 09:49:44 -07:00
2025-09-11 09:19:44 -06:00
2025-10-01 07:14:27 -06:00
2025-11-11 21:00:34 -07:00
2026-02-12 07:30:43 +08:00
2026-01-17 07:47:15 -07:00
2026-01-15 10:52:59 -07:00
2025-11-12 16:23:05 -07:00
2026-03-18 14:37:17 -06:00
2025-03-26 09:07:21 -07:00
2026-03-12 12:27:48 -06:00
2026-03-12 12:13:42 -06:00
2025-03-26 09:07:21 -07:00
2026-03-12 12:22:13 -06:00
2026-01-15 10:52:59 -07:00
2026-03-18 14:37:17 -06:00
2026-01-15 09:49:44 -07:00
2025-11-12 16:23:05 -07:00
2025-11-20 15:33:10 -07:00
2025-10-21 14:12:14 -06:00
2025-10-21 20:34:03 -06:00
2025-10-21 20:34:03 -06:00
2025-10-21 14:12:14 -06:00
2025-10-21 14:12:14 -06:00
2026-01-31 10:48:34 -07:00
2025-10-21 14:12:14 -06:00
2025-04-23 23:59:14 -04:00
2025-11-06 15:28:43 -07:00
2025-11-06 15:28:43 -07:00
2025-02-25 23:18:29 -05:00
2026-03-28 09:34:59 -06:00
2026-03-28 09:34:59 -06:00
2026-03-28 09:34:59 -06:00