Skip to content

Commit

Permalink
Fix nested example setup with create-next-app (#45390)
Browse files Browse the repository at this point in the history
Noticed in #45387 we aren't
properly setting up nested examples due to not stripping to the right
level so this ensures we handle that case properly.
  • Loading branch information
ijjk authored Jan 29, 2023
1 parent 87e0c3d commit b0d951b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-next-app/helpers/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function downloadAndExtractExample(root: string, name: string) {
await tar.x({
file: tempFile,
cwd: root,
strip: 3,
strip: 2 + name.split('/').length,
filter: (p) => p.includes(`next.js-canary/examples/${name}/`),
})

Expand Down

0 comments on commit b0d951b

Please sign in to comment.