{"id":13809276,"url":"https://github.com/jonahsnider/netlify-cache-nextjs","last_synced_at":"2025-05-14T05:33:38.499Z","repository":{"id":45395858,"uuid":"236132963","full_name":"jonahsnider/netlify-cache-nextjs","owner":"jonahsnider","description":"Cache the Next.js build folder in your Netlify builds","archived":true,"fork":false,"pushed_at":"2022-01-02T09:56:30.000Z","size":2214,"stargazers_count":58,"open_issues_count":5,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T08:50:27.988Z","etag":null,"topics":["cache","netlify","netlify-plugin","nextjs","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/netlify-plugin-cache-nextjs","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/jonahsnider.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}},"created_at":"2020-01-25T06:09:49.000Z","updated_at":"2023-08-22T10:14:43.000Z","dependencies_parsed_at":"2022-09-10T16:52:18.964Z","dependency_job_id":null,"html_url":"https://github.com/jonahsnider/netlify-cache-nextjs","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":"jonahsnider/typescript-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahsnider%2Fnetlify-cache-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahsnider%2Fnetlify-cache-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahsnider%2Fnetlify-cache-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahsnider%2Fnetlify-cache-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonahsnider","download_url":"https://codeload.github.com/jonahsnider/netlify-cache-nextjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254077023,"owners_count":22010642,"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":["cache","netlify","netlify-plugin","nextjs","typescript"],"created_at":"2024-08-04T01:02:14.227Z","updated_at":"2025-05-14T05:33:38.195Z","avatar_url":"https://github.com/jonahsnider.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# ⚠️ DEPRECATED ⚠️\n\nThis plugin is no longer maintained.\n\nPlease use [Netlify's official build plugin for Next.js](https://github.com/netlify/netlify-plugin-nextjs) for the same caching functionality.\n\n# [Netlify Next.js cache](https://app.netlify.com/plugins/netlify-plugin-cache-nextjs/install)\n\nCache the Next.js build folder in Netlify builds.\n\n[![add to netlify](https://img.shields.io/badge/add%20to-netlify-00AD9F)](https://app.netlify.com/plugins/netlify-plugin-cache-nextjs/install)\n[![npm](https://img.shields.io/npm/v/netlify-plugin-cache-nextjs)](https://www.npmjs.com/package/netlify-plugin-cache-nextjs)\n[![downloads per week](https://img.shields.io/npm/dw/netlify-plugin-cache-nextjs)](https://www.npmjs.com/package/netlify-plugin-cache-nextjs)\n[![Build Status](https://github.com/jonahsnider/netlify-cache-nextjs/workflows/CI/badge.svg)](https://github.com/jonahsnider/netlify-cache-nextjs/actions)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n\nA [popular](https://www.netlify.com/blog/2020/06/22/top-10-netlify-build-plugins/#4-next-js-cache) [Netlify build plugin](https://docs.netlify.com/configure-builds/build-plugins/).\n\n## Usage\n\nThis is a Netlify build plugin, which will run during your Netlify builds. You can learn more about Netlify Build Plugins in the [Netlify docs](https://docs.netlify.com/configure-builds/build-plugins/).\n\n[![add to netlify](https://img.shields.io/badge/add%20to-netlify-00AD9F)](https://app.netlify.com/plugins/netlify-plugin-cache-nextjs/install)\n\nIf you want to manually install the plugin add the following lines to your `netlify.toml` file:\n\n```toml\n[[plugins]]\npackage = \"netlify-plugin-cache-nextjs\"\n```\n\nNext, from your project's base directory, use yarn, npm, or any other Node.js package manager to add this plugin to devDependencies in `package.json`.\n\n```sh\nyarn add -D netlify-plugin-cache-nextjs\n```\n\nIf you want to configure the plugin, you can do this in your `netlify.toml` file:\n\n```toml\n[[plugins]]\npackage = \"netlify-plugin-cache-nextjs\"\n\t# These options will cache the build directory at `${NETLIFY_BASE}/frontend/.next-build`\n\t[plugins.inputs]\n\t# The path to the build directory\n\tbuild_dir_path = \"frontend\"\n\t# Custom build directory if you aren't using `.next` (https://nextjs.org/docs/api-reference/next.config.js/setting-a-custom-build-directory)\n\tcustom_build_dir_name = \".next-build\"\n```\n\nNote: The `[[plugins]]` line is required for each plugin, even if you have other plugins in your `netlify.toml` file already.\n\n## Contributing\n\n### Prequisites\n\nThis project uses any [Node.js](https://nodejs.org) version Netlify supports (8-13).\nFor best results use the latest Node.js LTS version.\n\nThis project uses [Yarn](https://yarnpkg.com) to install dependencies, although you can use another package manager like [npm](https://www.npmjs.com) or [pnpm](https://pnpm.js.org).\n\n```sh\nyarn install\n# or `npm install`\n# or `pnpm install`\n```\n\n### Building\n\nRun the `build` script to compile and optimize the TypeScript code into the `dist` folder.\n\n### Style\n\nThis project uses [Prettier](https://prettier.io) and [XO](https://github.com/xojs/xo).\n\nYou can run Prettier in the project with this command:\n\n```sh\nyarn run style\n```\n\nYou can run XO with this command:\n\n```sh\nyarn run lint\n```\n\nNote that XO will also error if you have TypeScript errors, not just if your formatting is incorrect.\n\n### Linting\n\nThis project uses [XO](https://github.com/xojs/xo) (which uses [ESLint](https://eslint.org) and some plugins internally) to perform static analysis on the TypeScript.\nIt reports things like unused variables or not following code conventions.\n\n```sh\nyarn run lint\n```\n\nNote that XO will also error if you have incorrect formatting, not just if your TypeScript code has errors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonahsnider%2Fnetlify-cache-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonahsnider%2Fnetlify-cache-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonahsnider%2Fnetlify-cache-nextjs/lists"}