Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jongwooo/next-cache
Cache Next.js for faster application rebuilds
https://github.com/jongwooo/next-cache
build-cache github-actions nextjs
Last synced: about 2 months ago
JSON representation
Cache Next.js for faster application rebuilds
- Host: GitHub
- URL: https://github.com/jongwooo/next-cache
- Owner: jongwooo
- License: mit
- Created: 2022-12-26T06:53:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T08:28:57.000Z (4 months ago)
- Last Synced: 2024-10-31T10:45:51.103Z (2 months ago)
- Topics: build-cache, github-actions, nextjs
- Homepage: https://jongwooo.github.io/next-cache/
- Size: 36.1 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# NextJS Cache
This action allows [caching Next.js](https://nextjs.org/docs/advanced-features/ci-build-caching) for faster application rebuilds.
[![LICENSE](https://img.shields.io/github/license/jongwooo/next-cache?color=blue)](LICENSE)
[![CodeFactor](https://www.codefactor.io/repository/github/jongwooo/next-cache/badge)](https://www.codefactor.io/repository/github/jongwooo/next-cache)
[![GitHub stars](https://img.shields.io/github/stars/jongwooo/next-cache?style=social)](https://github.com/jongwooo/next-cache)## Usage
### Pre-requisites
Create a workflow `.yml` file in your repositories `.github/workflows` directory. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
### Cache Details
This action currently caches the following directories:
- `.next/cache` (cache of data and rendered assets)
### Example workflow
```yaml
- uses: actions/checkout@v3- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18- uses: jongwooo/next-cache@v1
- name: Install dependencies
run: npm ci- name: Build
run: npm run build
```## Contributing
Check out [Contributing guide](.github/CONTRIBUTING.md) for ideas on contributing and setup steps for getting our repositories up.
## License
Licensed under the [MIT License](LICENSE).