Parcourir la source

fix lag

master
jefry il y a 4 ans
Parent
révision
1a4d9fa048
4 fichiers modifiés avec 63 ajouts et 1977 suppressions
  1. +1
    -2
      lib/apollo.js
  2. +7
    -4
      next.config.js
  3. +1
    -2
      package.json
  4. +54
    -1969
      yarn.lock

+ 1
- 2
lib/apollo.js Voir le fichier

@@ -5,12 +5,11 @@ import {
useQuery,
createHttpLink,
} from "@apollo/client";
import { createUploadLink } from "apollo-upload-client";
import ApolloConfig from "../config/apollo-config";
import fetch from "cross-fetch";

function initApollo(token) {
const httpLink = createUploadLink({
const httpLink = createHttpLink({
uri: ApolloConfig.graphql_uri,
fetch: fetch,
headers:


+ 7
- 4
next.config.js Voir le fichier

@@ -5,8 +5,11 @@ const webpack = require("webpack");
const path = require("path");

module.exports = withPlugins([[withSass], [withImages]], {
webpack(config, options) {
config.resolve.modules.push(path.resolve("./"));
return config;
}
webpack(config, { dev }) {
if (dev) {
config.devtool = "cheap-module-source-map";
}
config.resolve.modules.push(path.resolve("./"));
return config;
},
});

+ 1
- 2
package.json Voir le fichier

@@ -33,12 +33,11 @@
},
"homepage": "https://demos.creative-tim.com/nextjs-material-kit",
"dependencies": {
"@apollo/client": "^3.3.11",
"@material-ui/core": "4.9.13",
"@material-ui/icons": "4.9.1",
"@zeit/next-css": "^1.0.1",
"@zeit/next-sass": "1.0.1",
"apollo": "^2.32.1",
"apollo-upload-client": "^14.1.3",
"classnames": "2.2.6",
"cross-fetch": "^3.0.6",
"graphql": "^15.3.0",


+ 54
- 1969
yarn.lock
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


Chargement…
Annuler
Enregistrer