🐞 fix(录像): 修复上传录像错误
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
|
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
import { sshHost } from './sshHost';
|
||||||
|
|
||||||
export default (appInfo: EggAppInfo) => {
|
export default (appInfo: EggAppInfo) => {
|
||||||
const config = {} as PowerPartial<EggAppConfig>;
|
const config = {} as PowerPartial<EggAppConfig>;
|
||||||
@@ -79,6 +80,7 @@ export default (appInfo: EggAppInfo) => {
|
|||||||
const bizConfig = {
|
const bizConfig = {
|
||||||
sourceUrl: `https://github.com/eggjs/examples/tree/master/${appInfo.name}`,
|
sourceUrl: `https://github.com/eggjs/examples/tree/master/${appInfo.name}`,
|
||||||
};
|
};
|
||||||
|
config.sshHost = sshHost;
|
||||||
|
|
||||||
// the return config will combines to EggAppConfig
|
// the return config will combines to EggAppConfig
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
|
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
|
||||||
import defaultConfig from './config.default';
|
import defaultConfig from './config.default';
|
||||||
import { sshHost } from './sshHost';
|
|
||||||
|
|
||||||
export default (appInfo: EggAppInfo) => {
|
export default (appInfo: EggAppInfo) => {
|
||||||
const config = {} as PowerPartial<EggAppConfig>;
|
const config = {} as PowerPartial<EggAppConfig>;
|
||||||
@@ -19,7 +18,6 @@ export default (appInfo: EggAppInfo) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config.decodeParm = true;
|
config.decodeParm = true;
|
||||||
config.sshHost = sshHost;
|
|
||||||
|
|
||||||
// the return config will combines to EggAppConfig
|
// the return config will combines to EggAppConfig
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user