{"id":15118768,"url":"https://github.com/hafffe/nextjs-sanity-template","last_synced_at":"2025-09-28T01:30:43.139Z","repository":{"id":36977269,"uuid":"264043730","full_name":"hafffe/nextjs-sanity-template","owner":"hafffe","description":"Starter Sanity + Next.js ","archived":false,"fork":false,"pushed_at":"2024-04-14T20:04:32.000Z","size":5894,"stargazers_count":101,"open_issues_count":5,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-26T02:01:33.120Z","etag":null,"topics":["jamstack","nextjs","sanity-io","typescript"],"latest_commit_sha":null,"homepage":"https://nextjs-sanity-template.now.sh","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hafffe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-05-14T22:58:07.000Z","updated_at":"2024-08-13T00:57:20.000Z","dependencies_parsed_at":"2023-12-20T21:32:19.614Z","dependency_job_id":"60b980ed-5b86-474d-af6a-a64236725da2","html_url":"https://github.com/hafffe/nextjs-sanity-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafffe%2Fnextjs-sanity-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafffe%2Fnextjs-sanity-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafffe%2Fnextjs-sanity-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafffe%2Fnextjs-sanity-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hafffe","download_url":"https://codeload.github.com/hafffe/nextjs-sanity-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234475315,"owners_count":18839358,"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","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":["jamstack","nextjs","sanity-io","typescript"],"created_at":"2024-09-26T01:53:37.761Z","updated_at":"2025-09-28T01:30:43.134Z","avatar_url":"https://github.com/hafffe.png","language":"TypeScript","funding_links":[],"categories":["Free Boilerplates"],"sub_categories":[],"readme":"# NEXT.JS - SANITY TEMPLATE\n\n\u003e Template for blog / marketing site built next.js \u0026 sanity.io\n\nThis starter template built upon [Next.js](https://nextjs.org/) 13 with the new app directory \u0026 router.\n[Sanity](https://sanity.io/) is used for content handling,\nand [Tailwind](https://tailwindcss.com/) is used for styling.\n\n### Setup Vercel\n\nImport the project in vercel\nSetup following environment variables (as plain text variables)\n\n`NEXT_PUBLIC_SANITY_PROJECT_ID` with value for your prefered dataset\n`NEXT_PUBLIC_SANITY_DATASET` with your sanity project id\n`SANITY_API_READ_TOKEN` with a read token\n\n### Setup for local development\n\nCreate `.env` file in root path with the environment variables\n\n```\n# For Next Locally\nNEXT_PUBLIC_SANITY_PROJECT_ID = \"abcd1245\"\nNEXT_PUBLIC_SANITY_DATASET = \"production\"\nSANITY_API_READ_TOKEN = \"abc12345\"\n```\n\n### Development\n\nTo Start development server:\n\n```\nnpm run dev\n```\n\nThis will run frontend at localhost:3000\nand you will find sanity studio at localhost:3000/studio\n\nAdd http://localhost:3000 in sanity settings -\u003e api - CORS Origins\n\n### Things to know\n\n- Frontend startpage is fetched with slug `frontpage`\n- Posts list is fetched with the slug `posts`\n\n### Tech Stack\n\n- [Next.js](https://nextjs.org/)\n- [Sanity](https://sanity.io/)\n- [next-sanity](https://github.com/sanity-io/next-sanity)\n- [Tailwind](https://tailwindcss.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhafffe%2Fnextjs-sanity-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhafffe%2Fnextjs-sanity-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhafffe%2Fnextjs-sanity-template/lists"}