@nadeshikon/plugin-nextjs
Version:
Run Next.js seamlessly on Netlify
54 lines (47 loc) • 1.27 kB
JavaScript
import Head from 'next/head'
export default function Home() {
return (
<div className="container">
<Head>
<title>Next.js with Edge functions</title>
</Head>
<main>
<p>
If you're seeing this page, that means that edge functions aren't running.
Run `netlify dev` to see an edge function in action!
</p>
</main>
<style jsx>{`
.container {
min-height: 100vh;
padding: 0 0.5rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
main {
padding: 5rem 0;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
`}</style>
<style jsx global>{`
html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
sans-serif;
}
* {
box-sizing: border-box;
}
`}</style>
</div>
)
}