Demo site for the corresponding RFC: Gatsby Adapters. It uses gatsby@alpha-adapters
and thus still outputs some more verbose logging.
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:
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.
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
.