Skip to content

Commit e0463d9

Browse files
committed
feat: allow jerni-dev to run in build/start mode
Signed-off-by: Tung Vu <me@tungv.com>
1 parent 262e14a commit e0463d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/jerni-next-dev-plugin/src/jerni-next-plugin/withJerniNextDev.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ export default async function withJerniNextDev(nextConfig, { initializerPath, ev
3737
// Use this webpack config for further processing.
3838
const webpackConfig = typeof nextConfig.webpack === "function" ? nextConfig.webpack(config, options) : {};
3939

40-
const { isServer, dev } = options;
40+
const { isServer } = options;
4141

42-
if (isServer && dev) {
42+
if (isServer) {
4343
// Apply alias to resolve `@jerni/jerni-3` to `jerni-next-dev-plugin/jerni-next-dev`
4444
if (webpackConfig.resolve.alias["@jerni/jerni-3$"]) {
4545
// warn if alias is already defined

0 commit comments

Comments
 (0)