From 0dc49ecc8ed7f7d6f4b7276bb3a969d3cd4ffc72 Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 2 Mar 2022 00:54:21 -0600 Subject: [PATCH] fix: server runtime environment --- packages/core/src/server/flecks.js | 2 +- packages/server/src/entry.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/server/flecks.js b/packages/core/src/server/flecks.js index ed152db..2c5aa9f 100644 --- a/packages/core/src/server/flecks.js +++ b/packages/core/src/server/flecks.js @@ -42,7 +42,7 @@ export default class ServerFlecks extends Flecks { // // The latter will take precedence. const seen = []; - Object.keys(resolver) + Object.keys(this.flecks) .sort((l, r) => (l < r ? 1 : -1)) .forEach((fleck) => { const prefix = `FLECKS_ENV_${ diff --git a/packages/server/src/entry.js b/packages/server/src/entry.js index 28470d9..e8935e1 100644 --- a/packages/server/src/entry.js +++ b/packages/server/src/entry.js @@ -2,7 +2,8 @@ import {mkdir} from 'fs/promises'; import {tmpdir} from 'os'; import {join} from 'path'; -import {D, Flecks} from '@flecks/core'; +import {D} from '@flecks/core'; +import {Flecks} from '@flecks/core/server'; const {version} = require('../package.json');