We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4921b82 commit 4618dd5Copy full SHA for 4618dd5
packages/next-contentlayer/src/index.ts
@@ -28,7 +28,8 @@ export const createContentlayerPlugin =
28
(pluginOptions: NextPluginOptions = defaultPluginOptions) =>
29
(nextConfig: Partial<NextConfig> = {}): Partial<NextConfig> => {
30
// could be either `next dev` or just `next`
31
- const isNextDev = process.argv.includes('dev') || process.argv.some((_) => _.endsWith('bin/next'))
+ const isNextDev =
32
+ process.argv.includes('dev') || process.argv.some((_) => _.endsWith('bin/next') || _.endsWith('bin\\next'))
33
const isBuild = process.argv.includes('build')
34
35
const { configPath } = pluginOptions
0 commit comments