fix: server runtime environment

This commit is contained in:
cha0s 2022-03-02 00:54:21 -06:00
parent a22ab96b01
commit 0dc49ecc8e
2 changed files with 3 additions and 2 deletions

View File

@ -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_${

View File

@ -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');