Skip to content

LekoArts/gatsby-adapters-alpha-demo

Repository files navigation

Gatsby Adapters: Alpha (Demo)

Demo site for the corresponding RFC: Gatsby Adapters. It uses gatsby@alpha-adapters and thus still outputs some more verbose logging.

Try it out: Netlify

As part of the RFC we also worked on gatsby-adapter-netlify. When you publish your site to Netlify you should see a log like:

info Using gatsby-adapter-netlify adapter

Deploy this demo with one click on Netlify:

Deploy to Netlify

Locally you can also use the netlify-cli and use:

ntl serve

The netlify-cli will then run the build and serve the Gatsby site.

Try it out: Locally

If you don't want to publish this demo site to Netlify and/or want to try out an adapter locally, you can edit the gatsby-config.ts to uncomment the adapter line:

- // adapter: localAdapter(),
+ adapter: localAdapter(),

Now run gatsby build and you should see the log:

info Using gatsby-adapter-local adapter

Adapters are only run during gatsby build, so if you modify the local-adapter.ts file, you have to re-run gatsby build.

About

Demo site for the RFC: Gatsby Adapters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published