Remove next-view-transitions and use native View Transition API
- Remove external next-view-transitions dependency - Use Next.js 16 native navigation and Safari 18+ native View Transition API - Add ViewTransitionProvider for minimal wrapping with Safari 18+ detection - Updated all Link imports from external package to next/link - Removed link-wrapper.tsx and view-transitions-wrapper.tsx This resolves Safari compatibility issues while maintaining transitions on modern browsers.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Link } from 'next-view-transitions';
|
||||
import Link from 'next/link';
|
||||
import { getAllPostsSorted } from '@/lib/posts';
|
||||
import { siteConfig } from '@/lib/config';
|
||||
import { PostListItem } from '@/components/post-list-item';
|
||||
@@ -51,7 +51,7 @@ export default function HomePage() {
|
||||
<Link
|
||||
href="/blog"
|
||||
prefetch={true}
|
||||
className="text-xs text-blue-600 hover:underline dark:text-blue-400"
|
||||
className="text-xs text-accent hover:underline"
|
||||
>
|
||||
所有文章 →
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user