添加后台连接用的后端
This commit is contained in:
20
gm-server/config/plugin.ts
Normal file
20
gm-server/config/plugin.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { EggPlugin } from 'egg';
|
||||
import 'tsconfig-paths/register';
|
||||
|
||||
const plugin: EggPlugin = {
|
||||
// static: true,
|
||||
// nunjucks: {
|
||||
// enable: true,
|
||||
// package: 'egg-view-nunjucks',
|
||||
// },
|
||||
cors: {
|
||||
enable: true,
|
||||
package: 'egg-cors',
|
||||
},
|
||||
alinode: {
|
||||
enable: true,
|
||||
package: 'egg-alinode',
|
||||
},
|
||||
};
|
||||
|
||||
export default plugin;
|
||||
Reference in New Issue
Block a user