You are calling concat on a terminating link, which will have no effect 13:08:00
at new LinkError (node_modules\apollo-link\lib\linkUtils.js:28:28)
at Object.exports.concat (node_modules\apollo-link\lib\link.js:45:39)
at ApolloLink.concat (node_modules\apollo-link\lib\link.js:71:24)
at node_modules\apollo-link\lib\link.js:20:64
at Array.reduce (<anonymous>)
at from (node_modules\apollo-link\lib\link.js:20:30)
at createApolloClient (server.js:3500:35)
at module.exports../.nuxt/apollo-module.js.__webpack_exports__.default (server.js:417:126)
at createApp (server.js:1330:93)
at async module.exports../.nuxt/server.js.__webpack_exports__.default (server.js:1730:7)
i use it like this with nuxt-apollo
import { PrismicLink } from 'apollo-link-prismic'
import { InMemoryCache } from 'apollo-cache-inmemory'
import ApolloClient from 'apollo-client'
const client = new ApolloClient({
link: PrismicLink({
uri: process.env.PRISMIC
}),
cache: new InMemoryCache(),
defaultHttpLink: false
})
export default () => client