4 Commits
Author SHA1 Message Date
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
Michael BiancoandGitHub 25d9662825 test: add http content assertion to integration tests (#428)
* build: ignore local claude settings

* test: add httpCheck expectedOutput assertions

* test: add expectedOutput to httpCheck to assert against http response content

* test: remove expectedOutput for FE rendered content
2026-01-15 09:49:44 -07:00
Michael BiancoandGitHub a0b7d383cb test: http checks on example projects (#250)
* test: add HTTP checks

* test: http checks on docker containers

* test: removing justBuild if we have an http check

* test: missing bin/rails

* fix: warning if bin/rails dne

* test: allow json5 in test.json

* test: add justBuild for svelte
2025-10-21 11:11:30 -06:00
Jake Runzer a303faf788 add a staticfile provider 2025-01-30 01:29:22 -05:00