All Projects → jonahsnider → netlify-cache-nextjs

jonahsnider / netlify-cache-nextjs

Licence: other
Cache the Next.js build folder in your Netlify builds

Programming Languages

typescript
32286 projects
HTML
75241 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to netlify-cache-nextjs

netlify-plugin-cache
⚡ Generic plugin for caching any files and/or folders between Netlify builds
Stars: ✭ 19 (-68.33%)
Mutual labels:  netlify, netlify-plugin
netlify-plugin-image-optim
Optimize images as part of your Netlify build process. Optimizes PNG, JPEG, GIF and SVG file formats.
Stars: ✭ 63 (+5%)
Mutual labels:  netlify, netlify-plugin
brevifolia-gatsby-forestry
A simple starter blog built with Gatsby & Forestry
Stars: ✭ 54 (-10%)
Mutual labels:  netlify
next-netlify-starter
A one-click starter project for Next and Netlify
Stars: ✭ 76 (+26.67%)
Mutual labels:  netlify
rustplatz
(Inoffizielle) Website für das Rust-Projekt von Dhalucard, Bonjwa und RocketBeans
Stars: ✭ 15 (-75%)
Mutual labels:  netlify
shopnote
shopnote is a JAMstack application that helps in creating notes with shopping items. This application is built to showcase the JAMstack concept using Fauna, Netlify Serverless Functions and GatsbyJS.
Stars: ✭ 15 (-75%)
Mutual labels:  netlify
preact-cli-plugin-netlify
Preact cli plugin for generating h2push headers and redirects rules for netlify
Stars: ✭ 25 (-58.33%)
Mutual labels:  netlify
sroberts.github.io
A landing page for great justice
Stars: ✭ 20 (-66.67%)
Mutual labels:  netlify
testimonial
Jamstack app using Gatsby, Netlify, and FaunaDB.
Stars: ✭ 23 (-61.67%)
Mutual labels:  netlify
gatsby-minimal-portfolio
👔 JAMstack (Gatsby JS) content-focused portfolio blog starter. Features include dark-mode, installable PWA, SEO, code highlighting, form, CI/CD.
Stars: ✭ 36 (-40%)
Mutual labels:  netlify
api-jours-feries-france
Une API REST pour les jours fériés en France
Stars: ✭ 14 (-76.67%)
Mutual labels:  netlify
lambdog-server
Write Netlify functions without pulling your hair out.
Stars: ✭ 15 (-75%)
Mutual labels:  netlify
axiom
Axiom - A Hugo Theme. GitTip: https://gitcoin.co/tip?username=jhauraw
Stars: ✭ 67 (+11.67%)
Mutual labels:  netlify
nuxt-netlify-cms-starter
NuxtJS + Netlify CMS blog starter project
Stars: ✭ 35 (-41.67%)
Mutual labels:  netlify
demo-portfolio
A demo portfolio website
Stars: ✭ 15 (-75%)
Mutual labels:  netlify
platform
Community platform for dancers
Stars: ✭ 30 (-50%)
Mutual labels:  netlify
battlestax
BattleStax is a stateful JAMStack game that is wholesome fun for the entire crew.
Stars: ✭ 32 (-46.67%)
Mutual labels:  netlify
MikeRogersIO
The repo for my website
Stars: ✭ 16 (-73.33%)
Mutual labels:  netlify
netlify-build-github-actions
An example of triggering a Netlify build using Github Actions Scheduled Events
Stars: ✭ 31 (-48.33%)
Mutual labels:  netlify
video-to-markdown
How to embed a video in markdown? Here the answer. Add videos to your markdown files easier.
Stars: ✭ 159 (+165%)
Mutual labels:  netlify

⚠️ DEPRECATED ⚠️

This plugin is no longer maintained.

Please use Netlify's official build plugin for Next.js for the same caching functionality.

Netlify Next.js cache

Cache the Next.js build folder in Netlify builds.

add to netlify npm downloads per week Build Status XO code style

A popular Netlify build plugin.

Usage

This is a Netlify build plugin, which will run during your Netlify builds. You can learn more about Netlify Build Plugins in the Netlify docs.

add to netlify

If you want to manually install the plugin add the following lines to your netlify.toml file:

[[plugins]]
package = "netlify-plugin-cache-nextjs"

Next, 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.

yarn add -D netlify-plugin-cache-nextjs

If you want to configure the plugin, you can do this in your netlify.toml file:

[[plugins]]
package = "netlify-plugin-cache-nextjs"
	# These options will cache the build directory at `${NETLIFY_BASE}/frontend/.next-build`
	[plugins.inputs]
	# The path to the build directory
	build_dir_path = "frontend"
	# Custom build directory if you aren't using `.next` (https://nextjs.org/docs/api-reference/next.config.js/setting-a-custom-build-directory)
	custom_build_dir_name = ".next-build"

Note: The [[plugins]] line is required for each plugin, even if you have other plugins in your netlify.toml file already.

Contributing

Prequisites

This project uses any Node.js version Netlify supports (8-13). For best results use the latest Node.js LTS version.

This project uses Yarn to install dependencies, although you can use another package manager like npm or pnpm.

yarn install
# or `npm install`
# or `pnpm install`

Building

Run the build script to compile and optimize the TypeScript code into the dist folder.

Style

This project uses Prettier and XO.

You can run Prettier in the project with this command:

yarn run style

You can run XO with this command:

yarn run lint

Note that XO will also error if you have TypeScript errors, not just if your formatting is incorrect.

Linting

This project uses XO (which uses ESLint and some plugins internally) to perform static analysis on the TypeScript. It reports things like unused variables or not following code conventions.

yarn run lint

Note that XO will also error if you have incorrect formatting, not just if your TypeScript code has errors.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].