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',
  // },
  xtransit: {
    enable: true,
    package: 'egg-xtransit',
    env: ['sq1', 'sq4', 'sq7']
  }
};

export default plugin;
