{"id":19486262,"url":"https://github.com/textbook/spa-config-ssi","last_synced_at":"2026-05-08T04:02:59.588Z","repository":{"id":41650684,"uuid":"260147990","full_name":"textbook/spa-config-ssi","owner":"textbook","description":"Demonstration of using server-side includes to inject runtime configuration to a single-page app","archived":false,"fork":false,"pushed_at":"2023-01-06T04:39:25.000Z","size":4047,"stargazers_count":0,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T01:47:43.109Z","etag":null,"topics":["cloud-foundry","configuration","continuous-delivery","create-react-app","javascript","nginx","react","server-side-includes","single-page-app","staticfile"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/textbook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-30T07:53:35.000Z","updated_at":"2020-04-30T08:27:48.000Z","dependencies_parsed_at":"2023-02-05T08:16:44.313Z","dependency_job_id":null,"html_url":"https://github.com/textbook/spa-config-ssi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/textbook/spa-config-ssi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textbook%2Fspa-config-ssi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textbook%2Fspa-config-ssi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textbook%2Fspa-config-ssi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textbook%2Fspa-config-ssi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/textbook","download_url":"https://codeload.github.com/textbook/spa-config-ssi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textbook%2Fspa-config-ssi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266944040,"owners_count":24010481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-foundry","configuration","continuous-delivery","create-react-app","javascript","nginx","react","server-side-includes","single-page-app","staticfile"],"created_at":"2024-11-10T20:36:07.251Z","updated_at":"2026-05-08T04:02:54.549Z","avatar_url":"https://github.com/textbook.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPA Config SSI\n\nDemonstration of using server-side includes to inject runtime configuration to a single-page app.\n\n## Notes\n\n - Bootstrapped using [Create React App]\n - **Requires** `html-minifier-terser` of at least 5.1.0 (see this [Pull Request]) or explicit\n    configuration to leave SSI comments in HTML (can be done via `webpack-html-plugin` but not in\n    CRA)\n - Set up for deployment to [Cloud Foundry]\n\n## Usage\n\nThis demo includes two sets of configuration:\n\n - development (in `src/configuration.js`); and\n - production (in `public/config.html`).\n\nThe SSI directive in `public/index.html` is replaced by the content of `public/config.html` at\nruntime, if SSI is enabled on the server (the included `Staticfile` does this for the Nginx used\nin the [Staticfile buildpack]).\n\nTo run locally with the development configuration:\n\n```bash\nnpm start\n```\n\nTo deploy to CF with the production configuration, using the [CF CLI]:\n\n```bash\nnpm run build \u0026\u0026 cf push\n```\n\n  [CF CLI]: https://docs.cloudfoundry.org/cf-cli/install-go-cli.html\n  [Cloud Foundry]: https://cloudfoundry.org/\n  [Create React App]: https://github.com/facebook/create-react-app/\n  [Pull Request]: https://github.com/DanielRuf/html-minifier-terser/pull/39\n  [Staticfile buildpack]: https://docs.cloudfoundry.org/buildpacks/staticfile/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextbook%2Fspa-config-ssi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftextbook%2Fspa-config-ssi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextbook%2Fspa-config-ssi/lists"}