Skip to content

Commit

Permalink
use next/image
Browse files Browse the repository at this point in the history
  • Loading branch information
atilafassina committed Aug 23, 2022
1 parent 111531a commit 1254d72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/with-xata/pages/index.tsx
@@ -1,5 +1,7 @@
import { InferGetServerSidePropsType } from 'next'
import type { InferGetServerSidePropsType } from 'next'
import Image from 'next/image'
import { getXataClient } from '../utils/xata.codegen'
import xatafly from '../public/xatafly.gif'

const pushDummyData = async () => {
const response = await fetch('/api/write-links-to-xata')
Expand Down Expand Up @@ -29,7 +31,7 @@ export default function IndexPage({
return (
<main>
<header>
<img src="/flap.gif" />
<Image src={xatafly} priority />
<h1>
Next.js with<span aria-hidden>&#8209;</span>xata
</h1>
Expand Down
File renamed without changes

0 comments on commit 1254d72

Please sign in to comment.