mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(core): fix env set load order
This commit is contained in:
parent
f317a917c9
commit
80350b5e05
1 changed files with 2 additions and 2 deletions
|
@ -3,15 +3,15 @@ import dotenv from 'dotenv';
|
|||
import { findUp } from 'find-up';
|
||||
import Koa from 'koa';
|
||||
|
||||
import { EnvSet } from './env-set/index.js';
|
||||
import initI18n from './i18n/init.js';
|
||||
import { tenantPool } from './tenants/index.js';
|
||||
|
||||
dotenv.config({ path: await findUp('.env', {}) });
|
||||
|
||||
// Import after env has configured
|
||||
|
||||
const { loadConnectorFactories } = await import('./utils/connectors/factories.js');
|
||||
const { EnvSet } = await import('./env-set/index.js');
|
||||
const { tenantPool } = await import('./tenants/index.js');
|
||||
|
||||
try {
|
||||
const app = new Koa({
|
||||
|
|
Loading…
Reference in a new issue