Skip to content

Commit

Permalink
fix(admin): missing env utilities (#18657)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Nov 3, 2023
1 parent d6433ae commit f5b09a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/admin/_internal/node/core/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os from 'node:os';
import path from 'node:path';
import { env } from '@strapi/utils';
import { getModule, PackageJson } from './dependencies';
import { loadFile } from './files';
import { BuildContext, CreateBuildContextArgs } from '../createBuildContext';
Expand Down Expand Up @@ -128,7 +129,7 @@ const loadUserPluginsFile = async (root: string): Promise<UserPluginConfigFile>
/**
* Configs can be a function or they can be just an object!
*/
return typeof configFile === 'function' ? configFile() : configFile;
return typeof configFile === 'function' ? configFile({ env }) : configFile;
}
}

Expand Down

0 comments on commit f5b09a8

Please sign in to comment.