Skip to content

Commit 4618dd5

Browse files
authored
Update index.ts
1 parent 4921b82 commit 4618dd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/next-contentlayer/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export const createContentlayerPlugin =
2828
(pluginOptions: NextPluginOptions = defaultPluginOptions) =>
2929
(nextConfig: Partial<NextConfig> = {}): Partial<NextConfig> => {
3030
// could be either `next dev` or just `next`
31-
const isNextDev = process.argv.includes('dev') || process.argv.some((_) => _.endsWith('bin/next'))
31+
const isNextDev =
32+
process.argv.includes('dev') || process.argv.some((_) => _.endsWith('bin/next') || _.endsWith('bin\\next'))
3233
const isBuild = process.argv.includes('build')
3334

3435
const { configPath } = pluginOptions

0 commit comments

Comments
 (0)