Commit 91df5f81 authored by 郭志伟's avatar 郭志伟

fix: 调整apollo生成位置

parent c3b312a9
...@@ -17,7 +17,7 @@ app/**/*.js ...@@ -17,7 +17,7 @@ app/**/*.js
config/plugin.local.js config/plugin.local.js
config/plugin.js config/plugin.js
config/config.*.js config/config.*.js
config/apollo.json app/web/config/apollo.json
index.js index.js
config/manifest.json config/manifest.json
app/view/* app/view/*
......
import apollo from '../../../config/apollo.json'; import apollo from './apollo.json';
const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https'; const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
const { api, qiniu } = apollo; const { api, qiniu } = apollo;
export default { export default {
......
...@@ -7,7 +7,7 @@ const npm = require("npm"); ...@@ -7,7 +7,7 @@ const npm = require("npm");
npm.load(() => { npm.load(() => {
apollo.load({ apollo.load({
appId: 'quantum-blocks', appId: 'quantum-blocks',
configPath: path.resolve(__dirname, '../config'), configPath: path.resolve(__dirname, '../app/web/config'),
}).then(() => { }).then(() => {
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
npm.run("start"); npm.run("start");
......
import { Application, EggAppConfig } from 'egg'; import { Application, EggAppConfig } from 'egg';
import apollo from './apollo.json'; import apollo from '../app/web/config/apollo.json';
const { mysql, redis } = apollo; const { mysql, redis } = apollo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment