{"id":21496503,"url":"https://github.com/mlibrary/lib.umich.edu","last_synced_at":"2025-08-02T02:11:53.061Z","repository":{"id":37474244,"uuid":"151479992","full_name":"mlibrary/lib.umich.edu","owner":"mlibrary","description":"The public website front-end","archived":false,"fork":false,"pushed_at":"2025-07-25T16:23:32.000Z","size":27904,"stargazers_count":7,"open_issues_count":5,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-25T20:20:25.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.lib.umich.edu/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlibrary.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-03T21:02:33.000Z","updated_at":"2025-07-15T13:45:48.000Z","dependencies_parsed_at":"2024-01-18T19:27:20.396Z","dependency_job_id":"3d99b9ea-00d4-4d24-9f2d-118437097d3f","html_url":"https://github.com/mlibrary/lib.umich.edu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mlibrary/lib.umich.edu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Flib.umich.edu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Flib.umich.edu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Flib.umich.edu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Flib.umich.edu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlibrary","download_url":"https://codeload.github.com/mlibrary/lib.umich.edu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Flib.umich.edu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268326727,"owners_count":24232495,"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-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2024-11-23T16:16:47.878Z","updated_at":"2025-08-02T02:11:53.011Z","avatar_url":"https://github.com/mlibrary.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lib.umich.edu\n\n[lib.umich.edu](https://lib.umich.edu/) is a headless [Drupal](https://www.drupal.org/) site, built with [Gatsby](https://www.gatsbyjs.com/) and [React](https://react.dev/) as the front-end.\n\n## 🚀 Quick start\n\n1.  **Clone `lib.umich.edu`.**\n\n```shell\ngh repo clone mlibrary/lib.umich.edu\n```\n\n2.  **Install dependencies.**\n\nNavigate into your site’s directory and install dependencies with NPM.\n\n```shell\ncd lib.umich.edu/\nnpm install\n```\n\n3.  **Configuration**\n\n```\nROBOTSTXT_MODE=production\n```\n\nIf `ROBOTSTXT_MODE` is set to `production`, this tells the build to make a `robots.txt` that allows search engines to crawl the site. If your build is not for production, then don't set this variable or set it to `development` if needed.\n\n```\nCONTEXT=production\n```\n\nThis env var is automatically available when building on Netlify, but if you're building the site **not** with Netlify set `CONTEXT` as `production`, otherwise `ROBOTSTXT_MODE` will not work as expected.\n\n```\nDRUPAL_URL=https://cms.staging.lib.umich.edu/\n```\n\nThe site by default will build and pull data from `https://cms.lib.umich.edu/`, but you can change that with setting `DRUPAL_URL`.\n\n```\nDRUPAL_CONCURRENT_FILE_REQUESTS\n```\n\nYou can _optionally_ set `DRUPAL_CONCURRENT_FILE_REQUESTS` to adjust the [`gatsby-source-drupal` `concurrentFileRequests` option](https://www.gatsbyjs.com/plugins/gatsby-source-drupal/#concurrent-file-requests) (defaults to `20`) to change how many simultaneous file requests are made to the server/service. This benefits build speed, however too many concurrent file request could cause memory exhaustion depending on the machines memory size so change with caution.\n\nFor example, run:\n\n```\nDRUPAL_CONCURRENT_FILE_REQUESTS=60 npm start\n```\n\nor\n\n```\nDRUPAL_CONCURRENT_FILE_REQUESTS=5 npm start\n```\n\nAnd see what works best for your network connection, memory, and general situation.\n\n4.  **Start developing.**\n\nStart it up.\n\n```shell\nnpm start\n```\n\nIf you wish to pull data from the staging CMS rather than the production CMS, then use this command:\n\n```shell\nnpm run develop:staging\n```\n\nIf you wish to create a production build, then use this command:\n\n```shell\nnpm run start:production\n```\n\n⏳ **Hang tight!** Building the site can take an average of **20 minutes**.\n\n## ❔ Help and troubleshooting\n\nSometimes when changing git branches for example you might need to run Gatsby clean.\n\n```\nnpm run clean\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Flib.umich.edu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlibrary%2Flib.umich.edu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Flib.umich.edu/lists"}