소스 검색

fix lag

master
jefry 4 년 전
부모
커밋
1a4d9fa048
4개의 변경된 파일63개의 추가작업 그리고 1977개의 파일을 삭제
  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 파일 보기

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


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


+ 7
- 4
next.config.js 파일 보기

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


module.exports = withPlugins([[withSass], [withImages]], { 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 파일 보기

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


+ 54
- 1969
yarn.lock
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


불러오는 중...
취소
저장