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

fix: 调整apollo生成位置

parent c3b312a9
......@@ -17,7 +17,7 @@ app/**/*.js
config/plugin.local.js
config/plugin.js
config/config.*.js
config/apollo.json
app/web/config/apollo.json
index.js
config/manifest.json
app/view/*
......
import apollo from '../../../config/apollo.json';
import apollo from './apollo.json';
const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
const { api, qiniu } = apollo;
export default {
......
......@@ -7,7 +7,7 @@ const npm = require("npm");
npm.load(() => {
apollo.load({
appId: 'quantum-blocks',
configPath: path.resolve(__dirname, '../config'),
configPath: path.resolve(__dirname, '../app/web/config'),
}).then(() => {
if (process.env.NODE_ENV === 'production') {
npm.run("start");
......
import { Application, EggAppConfig } from 'egg';
import apollo from './apollo.json';
import apollo from '../app/web/config/apollo.json';
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