Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ npx @next/codemod@latest new-link .
- Need to install the following packages:
- @next/[email protected]
- Ok to proceed? (y)
- npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
- npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
- npm warn deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
- npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
- Executing command: jscodeshift --no-babel --ignore-pattern=**/node_modules/** --ignore-pattern=**/.next/** --extensions=tsx,ts,jsx,js --transform /home/neon/.npm/_npx/04c93779852ad6b7/node_modules/@next/codemod/transforms/new-link.js .
- Processing 133 files...
- Spawning 11 workers...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 13 files to free worker...
- Sending 3 files to free worker...
- All done.
- Results:
- 0 errors
- 122 unmodified
- 0 skipped
- 11 ok
- Time elapsed: 0.984seconds
- $ g diff
- diff --git a/src/app/(public)/order/confirmed/page.tsx b/src/app/(public)/order/confirmed/page.tsx
- index 86314ad..eee2b01 100644
- --- a/src/app/(public)/order/confirmed/page.tsx
- +++ b/src/app/(public)/order/confirmed/page.tsx
- @@ -60,7 +59,7 @@ export default function ThankYouPage({
- <div className="flex flex-col justify-center gap-4 md:flex-row">
- <Button asChild className="">
- - <Link href="/orders">
- + <Link href="/orders" legacyBehavior>
- View Order Details
- <ArrowRight className="ml-2 h-4 w-4" />
- </Link>
- @@ -71,7 +70,7 @@ export default function ThankYouPage({
- variant="outline"
- className="text-primary border-blue-200 hover:bg-blue-50"
- >
- - <Link href="/">
- + <Link href="/" legacyBehavior>
- <Home className="mr-2 h-4 w-4" />
- Continue Shopping
- </Link>
Advertisement
Add Comment
Please, Sign In to add comment