syfxlin / gatsby-plugin-express

Gatsby plugin for easy integration with Express.

Home Page:https://www.npmjs.com/package/@syfxlin/gatsby-plugin-express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gatsby Plugin Express

Introduction

Gatsby plugin for easy integration with Express. gatsby-plugin-express gives you a way to integrate your Gatsby site with a Node.js server using Fastify. Use to serve a standard Gatsby.js site normally - the plugin will take care of everything:

Installation

Install the plugin using npm or yarn

npm i @syfxlin/gatsby-plugin-express express

And add it to your gatsby-config.js

module.exports = {
    /* Site config */
    plugins: [
        {
            resolve: `@syfxlin/gatsby-plugin-express`,
        },
    ],
};

Serving your site

This plugin implements a server that's ready to go. To use this you can configure a start(or whatever you prefer) command in your package.json:

{
  "scripts": {
    "start": "gserve"
  }
}

About

Gatsby plugin for easy integration with Express.

https://www.npmjs.com/package/@syfxlin/gatsby-plugin-express


Languages

Language:TypeScript 95.4%Language:JavaScript 4.6%