GithubHelp home page GithubHelp logo

philhawksworth / content-shards Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 100 KB

Sharding SSG sites in Netlify for performance - a test

Home Page: https://content-shards.netlify.com

JavaScript 47.36% CSS 40.56% HTML 12.08%
jamstack netlify ssg static-site-generator eleventy

content-shards's Introduction

Content Shard

This example site is intended as a proof of concept for content sharding and using an intra-build cache on Netlify.

Instructions

To get your own instance of this example site cloned and deploying to Netlify very quickly, just click the button below and follow the instructions.

Deploy to Netlify

Wait, what happens when I click that button?

Good question. Here's what it will do...

  1. Netlify will clone the git repository of this project into your Github account. It will be asking for permission to add the repo for you.
  2. We'll create a new site for you in Netlify, and configure it to use your shiny new repo. Right away you'll be able to deploy changes simply by pushing changes to your repo.
  3. That's it really.

Deployments

Generating anf deploying the site happens automatically following any push to your site repository (once this is configure as a new site in Netlify via the steps above).

You can target which part of the site to rebuild and deploy by specifying that in the netlify.toml file when you push. The options are:

  • command = "yarn run build:site" to rebuild the entire site
  • command = "yarn run build:news" to rebuild just the news section of site and use cached assets from the previous build for everything else
  • command = "yarn run build:docs" to rebuild just the docs section of site and use cached assets from the previous build for everything else

A full site build must have taken place at some point on order for any of the partial builds to subsequently be successful.

content-shards's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

danielstaleiny

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.