mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -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 { findUp } from 'find-up';
|
||||||
import Koa from 'koa';
|
import Koa from 'koa';
|
||||||
|
|
||||||
import { EnvSet } from './env-set/index.js';
|
|
||||||
import initI18n from './i18n/init.js';
|
import initI18n from './i18n/init.js';
|
||||||
import { tenantPool } from './tenants/index.js';
|
|
||||||
|
|
||||||
dotenv.config({ path: await findUp('.env', {}) });
|
dotenv.config({ path: await findUp('.env', {}) });
|
||||||
|
|
||||||
// Import after env has configured
|
// Import after env has configured
|
||||||
|
|
||||||
const { loadConnectorFactories } = await import('./utils/connectors/factories.js');
|
const { loadConnectorFactories } = await import('./utils/connectors/factories.js');
|
||||||
|
const { EnvSet } = await import('./env-set/index.js');
|
||||||
|
const { tenantPool } = await import('./tenants/index.js');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const app = new Koa({
|
const app = new Koa({
|
||||||
|
|
Loading…
Reference in a new issue