chore: pre publish

This commit is contained in:
xiaojunnuo
2023-05-25 13:43:32 +08:00
parent 420b835b09
commit 998200e570
7 changed files with 22 additions and 12 deletions
@@ -15,9 +15,12 @@ import { PreviewMiddleware } from './middleware/preview';
import { AuthorityMiddleware } from './middleware/authority';
import * as staticFile from '@midwayjs/static-file';
import * as cron from './plugins/cron';
import * as dotenv from 'dotenv';
// load .env file in process.cwd
dotenv.config();
@Configuration({
imports: [koa, orm, cache, flyway, validateComp, cron,staticFile],
imports: [koa, orm, cache, flyway, validateComp, cron, staticFile],
importConfigs: [
{
default: defaultConfig,