Skip to content

Commit

Permalink
chore(example): bump next version to latest and update example code
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaotian committed Jun 25, 2024
1 parent b416dc5 commit 10d69f5
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 78 deletions.
2 changes: 1 addition & 1 deletion next-example/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Image from 'next/image';
import http from './xior-instance';

export default async function Home() {
await http.get('https://google.com');
await http.get('https://google.com', { next: { revalidate: 3600, tags: ['collection'] } });
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
Expand Down
6 changes: 3 additions & 3 deletions next-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"react": "^18",
"react-dom": "^18",
"next": "14.1.0",
"next": "^14.2.4",
"xior": "workspace:*"
},
"devDependencies": {
Expand All @@ -21,8 +21,8 @@
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"tailwindcss": "^3.4.4",
"eslint": "^8.38.0",
"eslint-config-next": "14.1.0"
"eslint-config-next": "14.2.4"
}
}
143 changes: 69 additions & 74 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 10d69f5

Please sign in to comment.