Skip to content

rtre84/netlify-stackbit-multi-site-example

Repository files navigation

This repo is a working multisite deployed on netlify and built using Gatsby. Navigating to the url below will serve you one of 3 gatsby sites at random. The sites were setup this way primarilly for novelty (In other words, I couldn't decide between the themes. Decisions are hard lol). Two of sites are backed by Netlify CMS and built via stackbit. The third one was built off gatsby-casper-ghost starter and modified for netlify. Each site is on a different branch.

WIP: I need to clean up the readme's and the directory structure.

https://infallible-thompson-7cee95.netlify.com

All three versions of the site:
https://5dbb56236f431c00088ffee0--infallible-thompson-7cee95.netlify.com/
https://5dbb4827ca9af19496bdc709--infallible-thompson-7cee95.netlify.com/
https://5dbbb3005e062500086e58e0--infallible-thompson-7cee95.netlify.com/

Stackbit Exto Theme

This site was generated by www.stackbit.com, v0.2.79.

Stackbit Exto Theme original README is located here.

The content of this site is managed by NetlifyCMS. Visit https://{yoursite-domain}/admin to manage site content.

Running Your Site Locally

  1. Install Node.js and npm

  2. Install npm dependencies:

     npm install
    
  3. get "stackbit-api-key" from project menu in Stackbit dashboard

  4. run the following command to assign this key to STACKBIT_API_KEY environment variable:

     export STACKBIT_API_KEY={stackbit_netlify_api_key}
    
  5. run the following command to fetch additional site contents from Stackbit if needed:

     npx @stackbit/stackbit-pull --stackbit-pull-api-url=https://api.stackbit.com/pull/5dbb1169bd51910019bd1aa6
    
  6. Starts a development server

     npm run develop
    
  7. Browse to http://localhost:8000/