Skip to content
Snippets Groups Projects
Commit b291dbda authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

add axiom-team server

parent 9cd0dc25
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
clientName clientName
.split(/(?=[A-Z])/) .split(/(?=[A-Z])/)
.map((s) => s.toLowerCase()) .map((s) => s.toLowerCase())
.join(".") .join("-")
}} }}
</option> </option>
</select> </select>
......
import { HttpLink } from "apollo-link-http"
import { setContext } from "apollo-link-context"
import { from } from "apollo-link"
import { cache } from "../cache"
export default (ctx) => {
const ssrMiddleware = setContext((_, { headers }) => {
if (process.client) return headers
return {
headers
}
})
const httpLink = new HttpLink({
uri: "https://gql.wotwizard.axiom-team.fr/"
})
const link = from([ssrMiddleware, httpLink])
return {
link,
cache,
// https://github.com/nuxt-community/apollo-module/issues/306#issuecomment-607225431
defaultHttpLink: false
}
}
...@@ -127,7 +127,8 @@ export default { ...@@ -127,7 +127,8 @@ export default {
apollo: { apollo: {
clientConfigs: { clientConfigs: {
trentesaux: "~/graphql/endpoints/trentesaux" trentesaux: "~/graphql/endpoints/trentesaux",
axiomTeam: "~/graphql/endpoints/axiom-team"
} }
}, },
......
{ {
"name": "wotwizard-ui", "name": "wotwizard-ui",
"version": "2.5.0", "version": "2.5.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "nuxt", "dev": "nuxt",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "Wotwizard UI", "name": "Wotwizard UI",
"description": "Le magicien de la toile de confiance", "description": "Le magicien de la toile de confiance",
"version": "2.5.0", "version": "2.5.1",
"homepage_url": "https://wotwizard.axiom-team.fr", "homepage_url": "https://wotwizard.axiom-team.fr",
"browser_action": { "browser_action": {
"browser_style": true, "browser_style": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment