Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 407 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 407 Bytes

vite-plugin-apollo-server

Apply apollo server middleware to the vite dev server

Installation

npm i vite-plugin-apollo-server

Usage

import { defineConfig } from 'vite'
import apolloServerPlugin from 'vite-plugin-apollo-server'

const schema = // generate your GraphQLSchema

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [apolloServerPlugin({ schema })]
})