vue-cli-plugin-apollo
Version:
vue-cli 3 plugin to add Apollo and GraphQL
15 lines (10 loc) • 321 B
Markdown
add express middlewares into the GraphQL server, you can create a `./apollo-server/server.js` file:
```js
import path from 'path'
import express from 'express'
const distPath = path.resolve(__dirname, '../../dist')
export default app => {
app.use(express.static(distPath))
}
```
If you need to