Skip to content

Commit 944b1b0

Browse files
committed
fix(nextjs): Update glob for cache output
closes: #30338
1 parent 29d9d15 commit 944b1b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/next/src/plugins/__snapshots__/plugin.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exports[`@nx/next/plugin integrated projects should create nodes 1`] = `
3535
},
3636
"outputs": [
3737
"{workspaceRoot}/my-app/.next",
38-
"{workspaceRoot}/my-app/.next/!(cache)",
38+
"{workspaceRoot}/my-app/.next/!(cache)/**/*",
3939
],
4040
},
4141
"my-serve": {
@@ -110,7 +110,7 @@ exports[`@nx/next/plugin root projects should create nodes 1`] = `
110110
},
111111
"outputs": [
112112
"{projectRoot}/.next",
113-
"{projectRoot}/.next/!(cache)",
113+
"{projectRoot}/.next/!(cache)/**/*",
114114
],
115115
},
116116
"build-deps": {

packages/next/src/plugins/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async function getBuildTargetConfig(
207207
dependsOn: ['^build'],
208208
cache: true,
209209
inputs: getInputs(namedInputs),
210-
outputs: [nextOutputPath, `${nextOutputPath}/!(cache)`],
210+
outputs: [nextOutputPath, `${nextOutputPath}/!(cache)/**/*`],
211211
};
212212

213213
// TODO(ndcunningham): Update this to be consider different versions of next.js which is running

0 commit comments

Comments
 (0)