- Wafer donut candy soufflé{' '}
- lemon drops icing. Marzipan gummi
+ Wafer donut candy soufflé{" "}
+ lemon drops icing. Marzipan gummi
bears pie danish lollipop pudding powder gummi bears sweet. Pie sweet
roll sweet roll topping chocolate bar dragée pudding chocolate cake.
Croissant sweet chocolate bar cheesecake candy canes. Tootsie roll icing
@@ -90,5 +90,5 @@ export default function DogPage() {
tiramisu.
- )
+ );
}
diff --git a/examples/amp/pages/index.tsx b/examples/amp/pages/index.tsx
index 5395cb8f9e..c6d494822f 100644
--- a/examples/amp/pages/index.tsx
+++ b/examples/amp/pages/index.tsx
@@ -1,14 +1,14 @@
-import Head from 'next/head'
-import { useAmp } from 'next/amp'
-import Layout from '../components/Layout'
-import Byline from '../components/Byline'
+import Head from "next/head";
+import { useAmp } from "next/amp";
+import Layout from "../components/Layout";
+import Byline from "../components/Byline";
export const config = {
amp: true,
-}
+};
export default function IndexPage() {
- const isAmp = useAmp()
+ const isAmp = useAmp();
return (
@@ -35,7 +35,7 @@ export default function IndexPage() {
>
- Cat ipsum dolor sit amet,
+ Cat ipsum dolor sit amet,
eat grass, throw it back up but refuse to leave cardboard box or groom
yourself 4 hours - checked, have your beauty sleep 18 hours - checked,
be fabulous for the rest of the day - checked!. Hide from vacuum
@@ -233,5 +233,5 @@ export default function IndexPage() {
}
`}
;
}
-export default SignOut
+export default SignOut;
diff --git a/examples/api-routes-apollo-server-and-client-auth/pages/signup.tsx b/examples/api-routes-apollo-server-and-client-auth/pages/signup.tsx
index 2a6d4fb8bc..c781c12c6b 100644
--- a/examples/api-routes-apollo-server-and-client-auth/pages/signup.tsx
+++ b/examples/api-routes-apollo-server-and-client-auth/pages/signup.tsx
@@ -1,9 +1,9 @@
-import { useState } from 'react'
-import { useRouter } from 'next/router'
-import Link from 'next/link'
-import { gql, useMutation } from '@apollo/client'
-import { getErrorMessage } from '../lib/form'
-import Field from '../components/field'
+import { useState } from "react";
+import { useRouter } from "next/router";
+import Link from "next/link";
+import { gql, useMutation } from "@apollo/client";
+import { getErrorMessage } from "../lib/form";
+import Field from "../components/field";
const SignUpMutation = gql`
mutation SignUpMutation($email: String!, $password: String!) {
@@ -14,17 +14,17 @@ const SignUpMutation = gql`
}
}
}
-`
+`;
function SignUp() {
- const [signUp] = useMutation(SignUpMutation)
- const [errorMsg, setErrorMsg] = useState()
- const router = useRouter()
+ const [signUp] = useMutation(SignUpMutation);
+ const [errorMsg, setErrorMsg] = useState();
+ const router = useRouter();
async function handleSubmit(event) {
- event.preventDefault()
- const emailElement = event.currentTarget.elements.email
- const passwordElement = event.currentTarget.elements.password
+ event.preventDefault();
+ const emailElement = event.currentTarget.elements.email;
+ const passwordElement = event.currentTarget.elements.password;
try {
await signUp({
@@ -32,11 +32,11 @@ function SignUp() {
email: emailElement.value,
password: passwordElement.value,
},
- })
+ });
- router.push('/signin')
+ router.push("/signin");
} catch (error) {
- setErrorMsg(getErrorMessage(error))
+ setErrorMsg(getErrorMessage(error));
}
}
@@ -59,11 +59,11 @@ function SignUp() {
required
label="Password"
/>
- or{' '}
+ or{" "}
Sign in
>
- )
+ );
}
-export default SignUp
+export default SignUp;
diff --git a/examples/api-routes-apollo-server-and-client/apollo/client.tsx b/examples/api-routes-apollo-server-and-client/apollo/client.tsx
index a6d28253a2..d5d95d81d5 100644
--- a/examples/api-routes-apollo-server-and-client/apollo/client.tsx
+++ b/examples/api-routes-apollo-server-and-client/apollo/client.tsx
@@ -1,54 +1,54 @@
-import { useMemo } from 'react'
-import { ApolloClient, InMemoryCache, HttpLink } from '@apollo/client'
-import { SchemaLink } from '@apollo/client/link/schema'
-import { schema } from '../apollo/schema'
-import merge from 'deepmerge'
+import { useMemo } from "react";
+import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client";
+import { SchemaLink } from "@apollo/client/link/schema";
+import { schema } from "../apollo/schema";
+import merge from "deepmerge";
-let apolloClient
+let apolloClient;
function createIsomorphLink() {
- if (typeof window === 'undefined') {
- return new SchemaLink({ schema })
+ if (typeof window === "undefined") {
+ return new SchemaLink({ schema });
} else {
return new HttpLink({
- uri: '/api/graphql',
- credentials: 'same-origin',
- })
+ uri: "/api/graphql",
+ credentials: "same-origin",
+ });
}
}
function createApolloClient() {
return new ApolloClient({
- ssrMode: typeof window === 'undefined',
+ ssrMode: typeof window === "undefined",
link: createIsomorphLink(),
cache: new InMemoryCache(),
- })
+ });
}
export function initializeApollo(initialState = null) {
- const _apolloClient = apolloClient ?? createApolloClient()
+ const _apolloClient = apolloClient ?? createApolloClient();
// If your page has Next.js data fetching methods that use Apollo Client, the initial state
// gets hydrated here
if (initialState) {
// Get existing cache, loaded during client side data fetching
- const existingCache = _apolloClient.extract()
+ const existingCache = _apolloClient.extract();
// Merge the existing cache into data passed from getStaticProps/getServerSideProps
- const data = merge(initialState, existingCache)
+ const data = merge(initialState, existingCache);
// Restore the cache with the merged data
- _apolloClient.cache.restore(data)
+ _apolloClient.cache.restore(data);
}
// For SSG and SSR always create a new Apollo Client
- if (typeof window === 'undefined') return _apolloClient
+ if (typeof window === "undefined") return _apolloClient;
// Create the Apollo Client once in the client
- if (!apolloClient) apolloClient = _apolloClient
+ if (!apolloClient) apolloClient = _apolloClient;
- return _apolloClient
+ return _apolloClient;
}
export function useApollo(initialState) {
- const store = useMemo(() => initializeApollo(initialState), [initialState])
- return store
+ const store = useMemo(() => initializeApollo(initialState), [initialState]);
+ return store;
}
diff --git a/examples/api-routes-apollo-server-and-client/apollo/resolvers.ts b/examples/api-routes-apollo-server-and-client/apollo/resolvers.ts
index f85c477223..577abb43ad 100644
--- a/examples/api-routes-apollo-server-and-client/apollo/resolvers.ts
+++ b/examples/api-routes-apollo-server-and-client/apollo/resolvers.ts
@@ -1,7 +1,7 @@
export const resolvers = {
Query: {
viewer() {
- return { id: 1, name: 'John Smith', status: 'cached' }
+ return { id: 1, name: "John Smith", status: "cached" };
},
},
-}
+};
diff --git a/examples/api-routes-apollo-server-and-client/apollo/schema.ts b/examples/api-routes-apollo-server-and-client/apollo/schema.ts
index 0f14aa64f6..0aef15f2c3 100644
--- a/examples/api-routes-apollo-server-and-client/apollo/schema.ts
+++ b/examples/api-routes-apollo-server-and-client/apollo/schema.ts
@@ -1,8 +1,8 @@
-import { makeExecutableSchema } from '@graphql-tools/schema'
-import { typeDefs } from './type-defs'
-import { resolvers } from './resolvers'
+import { makeExecutableSchema } from "@graphql-tools/schema";
+import { typeDefs } from "./type-defs";
+import { resolvers } from "./resolvers";
export const schema = makeExecutableSchema({
typeDefs,
resolvers,
-})
+});
diff --git a/examples/api-routes-apollo-server-and-client/apollo/type-defs.ts b/examples/api-routes-apollo-server-and-client/apollo/type-defs.ts
index 53c485d64e..c213ed0199 100644
--- a/examples/api-routes-apollo-server-and-client/apollo/type-defs.ts
+++ b/examples/api-routes-apollo-server-and-client/apollo/type-defs.ts
@@ -1,4 +1,4 @@
-import { gql } from '@apollo/client'
+import { gql } from "@apollo/client";
export const typeDefs = gql`
type User {
@@ -10,4 +10,4 @@ export const typeDefs = gql`
type Query {
viewer: User
}
-`
+`;
diff --git a/examples/api-routes-apollo-server-and-client/pages/_app.tsx b/examples/api-routes-apollo-server-and-client/pages/_app.tsx
index 482728ae76..5d5e890078 100644
--- a/examples/api-routes-apollo-server-and-client/pages/_app.tsx
+++ b/examples/api-routes-apollo-server-and-client/pages/_app.tsx
@@ -1,12 +1,12 @@
-import { ApolloProvider } from '@apollo/client'
-import { useApollo } from '../apollo/client'
+import { ApolloProvider } from "@apollo/client";
+import { useApollo } from "../apollo/client";
export default function App({ Component, pageProps }) {
- const apolloClient = useApollo(pageProps.initialApolloState)
+ const apolloClient = useApollo(pageProps.initialApolloState);
return (
- )
+ );
}
diff --git a/examples/api-routes-apollo-server-and-client/pages/about.tsx b/examples/api-routes-apollo-server-and-client/pages/about.tsx
index 1a13743a81..81e2c82dcc 100644
--- a/examples/api-routes-apollo-server-and-client/pages/about.tsx
+++ b/examples/api-routes-apollo-server-and-client/pages/about.tsx
@@ -1,9 +1,9 @@
-import Link from 'next/link'
+import Link from "next/link";
export default function About() {
return (
This is a static page goto dynamic page.
- )
+ );
}
diff --git a/examples/api-routes-apollo-server-and-client/pages/api/graphql.ts b/examples/api-routes-apollo-server-and-client/pages/api/graphql.ts
index 046f133748..3d8280dfe9 100644
--- a/examples/api-routes-apollo-server-and-client/pages/api/graphql.ts
+++ b/examples/api-routes-apollo-server-and-client/pages/api/graphql.ts
@@ -1,7 +1,7 @@
-import { ApolloServer } from '@apollo/server'
-import { startServerAndCreateNextHandler } from '@as-integrations/next'
-import { schema } from '../../apollo/schema'
+import { ApolloServer } from "@apollo/server";
+import { startServerAndCreateNextHandler } from "@as-integrations/next";
+import { schema } from "../../apollo/schema";
-const apolloServer = new ApolloServer({ schema })
+const apolloServer = new ApolloServer({ schema });
-export default startServerAndCreateNextHandler(apolloServer)
+export default startServerAndCreateNextHandler(apolloServer);
diff --git a/examples/api-routes-apollo-server-and-client/pages/index.tsx b/examples/api-routes-apollo-server-and-client/pages/index.tsx
index 42b09c1c93..7db4542db2 100644
--- a/examples/api-routes-apollo-server-and-client/pages/index.tsx
+++ b/examples/api-routes-apollo-server-and-client/pages/index.tsx
@@ -1,7 +1,7 @@
-import gql from 'graphql-tag'
-import Link from 'next/link'
-import { useQuery } from '@apollo/client'
-import { initializeApollo } from '../apollo/client'
+import gql from "graphql-tag";
+import Link from "next/link";
+import { useQuery } from "@apollo/client";
+import { initializeApollo } from "../apollo/client";
const ViewerQuery = gql`
query ViewerQuery {
@@ -11,33 +11,33 @@ const ViewerQuery = gql`
status
}
}
-`
+`;
const Index = () => {
const {
data: { viewer },
- } = useQuery(ViewerQuery)
+ } = useQuery(ViewerQuery);
return (
- You're signed in as {viewer.name} and you're {viewer.status} goto{' '}
+ You're signed in as {viewer.name} and you're {viewer.status} goto{" "}
static page.
@@ -17,5 +17,5 @@ export default function Index() {
))}
- )
+ );
}
diff --git a/examples/api-routes/pages/person/[id].tsx b/examples/api-routes/pages/person/[id].tsx
index 116e914a99..229a4ce6a6 100644
--- a/examples/api-routes/pages/person/[id].tsx
+++ b/examples/api-routes/pages/person/[id].tsx
@@ -1,27 +1,27 @@
-import { useRouter } from 'next/router'
-import useSWR from 'swr'
-import type { Person, ResponseError } from '../../interfaces'
+import { useRouter } from "next/router";
+import useSWR from "swr";
+import type { Person, ResponseError } from "../../interfaces";
const fetcher = async (url: string) => {
- const res = await fetch(url)
- const data = await res.json()
+ const res = await fetch(url);
+ const data = await res.json();
if (res.status !== 200) {
- throw new Error(data.message)
+ throw new Error(data.message);
}
- return data
-}
+ return data;
+};
export default function PersonPage() {
- const { query } = useRouter()
+ const { query } = useRouter();
const { data, error, isLoading, isValidating } = useSWR<
Person,
ResponseError
- >(() => (query.id ? `/api/people/${query.id}` : null), fetcher)
+ >(() => (query.id ? `/api/people/${query.id}` : null), fetcher);
- if (error) return
{error.message}
- if (isLoading) return
Loading...
- if (!data) return null
+ if (error) return
{error.message}
;
+ if (isLoading) return
Loading...
;
+ if (!data) return null;
return (
@@ -56,5 +56,5 @@ export default function PersonPage() {
- )
+ );
}
diff --git a/examples/app-dir-i18n-routing/app/[lang]/components/counter.tsx b/examples/app-dir-i18n-routing/app/[lang]/components/counter.tsx
index b65b161488..0b59c94e27 100644
--- a/examples/app-dir-i18n-routing/app/[lang]/components/counter.tsx
+++ b/examples/app-dir-i18n-routing/app/[lang]/components/counter.tsx
@@ -1,14 +1,14 @@
-'use client'
+"use client";
-import { useState } from 'react'
-import { type getDictionary } from '../../../get-dictionary'
+import { useState } from "react";
+import { type getDictionary } from "../../../get-dictionary";
export default function Counter({
dictionary,
}: {
- dictionary: Awaited>['counter']
+ dictionary: Awaited>["counter"];
}) {
- const [count, setCount] = useState(0)
+ const [count, setCount] = useState(0);
return (
This component is rendered on client:
@@ -20,5 +20,5 @@ export default function Counter({
{dictionary.increment}
- )
+ );
}
diff --git a/examples/app-dir-i18n-routing/app/[lang]/components/locale-switcher.tsx b/examples/app-dir-i18n-routing/app/[lang]/components/locale-switcher.tsx
index 1d34e7c248..8fd654e844 100644
--- a/examples/app-dir-i18n-routing/app/[lang]/components/locale-switcher.tsx
+++ b/examples/app-dir-i18n-routing/app/[lang]/components/locale-switcher.tsx
@@ -1,17 +1,17 @@
-'use client'
+"use client";
-import { usePathname } from 'next/navigation'
-import Link from 'next/link'
-import { i18n, type Locale } from '../../../i18n-config'
+import { usePathname } from "next/navigation";
+import Link from "next/link";
+import { i18n, type Locale } from "../../../i18n-config";
export default function LocaleSwitcher() {
- const pathName = usePathname()
+ const pathName = usePathname();
const redirectedPathName = (locale: Locale) => {
- if (!pathName) return '/'
- const segments = pathName.split('/')
- segments[1] = locale
- return segments.join('/')
- }
+ if (!pathName) return "/";
+ const segments = pathName.split("/");
+ segments[1] = locale;
+ return segments.join("/");
+ };
return (
@@ -22,9 +22,9 @@ export default function LocaleSwitcher() {
{locale}
- )
+ );
})}
- )
+ );
}
diff --git a/examples/app-dir-i18n-routing/app/[lang]/layout.tsx b/examples/app-dir-i18n-routing/app/[lang]/layout.tsx
index fd422b4786..0ed9c37a43 100644
--- a/examples/app-dir-i18n-routing/app/[lang]/layout.tsx
+++ b/examples/app-dir-i18n-routing/app/[lang]/layout.tsx
@@ -1,24 +1,24 @@
-import { i18n, type Locale } from '../../i18n-config'
+import { i18n, type Locale } from "../../i18n-config";
export async function generateStaticParams() {
- return i18n.locales.map((locale) => ({ lang: locale }))
+ return i18n.locales.map((locale) => ({ lang: locale }));
}
export default function Root({
children,
params,
}: {
- children: React.ReactNode
- params: { lang: Locale }
+ children: React.ReactNode;
+ params: { lang: Locale };
}) {
return (
{children}
- )
+ );
}
export const metadata = {
- title: 'i18n within app directory - Vercel Examples',
- description: 'How to do i18n in Next.js 13 within app directory',
-}
+ title: "i18n within app directory - Vercel Examples",
+ description: "How to do i18n in Next.js 13 within app directory",
+};
diff --git a/examples/app-dir-i18n-routing/app/[lang]/page.tsx b/examples/app-dir-i18n-routing/app/[lang]/page.tsx
index fbad660311..d9654b9a7a 100644
--- a/examples/app-dir-i18n-routing/app/[lang]/page.tsx
+++ b/examples/app-dir-i18n-routing/app/[lang]/page.tsx
@@ -1,24 +1,24 @@
-import { getDictionary } from '../../get-dictionary'
-import { Locale } from '../../i18n-config'
-import Counter from './components/counter'
-import LocaleSwitcher from './components/locale-switcher'
+import { getDictionary } from "../../get-dictionary";
+import { Locale } from "../../i18n-config";
+import Counter from "./components/counter";
+import LocaleSwitcher from "./components/locale-switcher";
export default async function IndexPage({
params: { lang },
}: {
- params: { lang: Locale }
+ params: { lang: Locale };
}) {
- const dictionary = await getDictionary(lang)
+ const dictionary = await getDictionary(lang);
return (
Current locale: {lang}
- This text is rendered on the server:{' '}
- {dictionary['server-component'].welcome}
+ This text is rendered on the server:{" "}
+ {dictionary["server-component"].welcome}
- )
+ );
}
diff --git a/examples/app-dir-i18n-routing/get-dictionary.ts b/examples/app-dir-i18n-routing/get-dictionary.ts
index ee3e7fb016..455c405b49 100644
--- a/examples/app-dir-i18n-routing/get-dictionary.ts
+++ b/examples/app-dir-i18n-routing/get-dictionary.ts
@@ -1,13 +1,13 @@
-import 'server-only'
-import type { Locale } from './i18n-config'
+import "server-only";
+import type { Locale } from "./i18n-config";
// We enumerate all dictionaries here for better linting and typescript support
// We also get the default import for cleaner types
const dictionaries = {
- en: () => import('./dictionaries/en.json').then((module) => module.default),
- de: () => import('./dictionaries/de.json').then((module) => module.default),
- cs: () => import('./dictionaries/cs.json').then((module) => module.default),
-}
+ en: () => import("./dictionaries/en.json").then((module) => module.default),
+ de: () => import("./dictionaries/de.json").then((module) => module.default),
+ cs: () => import("./dictionaries/cs.json").then((module) => module.default),
+};
export const getDictionary = async (locale: Locale) =>
- dictionaries[locale]?.() ?? dictionaries.en()
+ dictionaries[locale]?.() ?? dictionaries.en();
diff --git a/examples/app-dir-i18n-routing/i18n-config.ts b/examples/app-dir-i18n-routing/i18n-config.ts
index 712c8e6347..09b0a373db 100644
--- a/examples/app-dir-i18n-routing/i18n-config.ts
+++ b/examples/app-dir-i18n-routing/i18n-config.ts
@@ -1,6 +1,6 @@
export const i18n = {
- defaultLocale: 'en',
- locales: ['en', 'de', 'cs'],
-} as const
+ defaultLocale: "en",
+ locales: ["en", "de", "cs"],
+} as const;
-export type Locale = (typeof i18n)['locales'][number]
+export type Locale = (typeof i18n)["locales"][number];
diff --git a/examples/app-dir-i18n-routing/middleware.ts b/examples/app-dir-i18n-routing/middleware.ts
index c0287edb51..253df78fb5 100644
--- a/examples/app-dir-i18n-routing/middleware.ts
+++ b/examples/app-dir-i18n-routing/middleware.ts
@@ -1,31 +1,31 @@
-import { NextResponse } from 'next/server'
-import type { NextRequest } from 'next/server'
+import { NextResponse } from "next/server";
+import type { NextRequest } from "next/server";
-import { i18n } from './i18n-config'
+import { i18n } from "./i18n-config";
-import { match as matchLocale } from '@formatjs/intl-localematcher'
-import Negotiator from 'negotiator'
+import { match as matchLocale } from "@formatjs/intl-localematcher";
+import Negotiator from "negotiator";
function getLocale(request: NextRequest): string | undefined {
// Negotiator expects plain object so we need to transform headers
- const negotiatorHeaders: Record = {}
- request.headers.forEach((value, key) => (negotiatorHeaders[key] = value))
+ const negotiatorHeaders: Record = {};
+ request.headers.forEach((value, key) => (negotiatorHeaders[key] = value));
// @ts-ignore locales are readonly
- const locales: string[] = i18n.locales
+ const locales: string[] = i18n.locales;
// Use negotiator and intl-localematcher to get best locale
let languages = new Negotiator({ headers: negotiatorHeaders }).languages(
- locales
- )
+ locales,
+ );
- const locale = matchLocale(languages, locales, i18n.defaultLocale)
+ const locale = matchLocale(languages, locales, i18n.defaultLocale);
- return locale
+ return locale;
}
export function middleware(request: NextRequest) {
- const pathname = request.nextUrl.pathname
+ const pathname = request.nextUrl.pathname;
// // `/_next/` and `/api/` are ignored by the watcher, but we need to ignore files in `public` manually.
// // If you have one
@@ -40,25 +40,26 @@ export function middleware(request: NextRequest) {
// Check if there is any supported locale in the pathname
const pathnameIsMissingLocale = i18n.locales.every(
- (locale) => !pathname.startsWith(`/${locale}/`) && pathname !== `/${locale}`
- )
+ (locale) =>
+ !pathname.startsWith(`/${locale}/`) && pathname !== `/${locale}`,
+ );
// Redirect if there is no locale
if (pathnameIsMissingLocale) {
- const locale = getLocale(request)
+ const locale = getLocale(request);
// e.g. incoming request is /products
// The new URL is now /en-US/products
return NextResponse.redirect(
new URL(
- `/${locale}${pathname.startsWith('/') ? '' : '/'}${pathname}`,
- request.url
- )
- )
+ `/${locale}${pathname.startsWith("/") ? "" : "/"}${pathname}`,
+ request.url,
+ ),
+ );
}
}
export const config = {
// Matcher ignoring `/_next/` and `/api/`
- matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
-}
+ matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
+};
diff --git a/examples/app-dir-mdx/app/globals.css b/examples/app-dir-mdx/app/globals.css
index 2527aea354..ee04ea4622 100644
--- a/examples/app-dir-mdx/app/globals.css
+++ b/examples/app-dir-mdx/app/globals.css
@@ -1,9 +1,9 @@
:root {
--max-width: 1100px;
--border-radius: 12px;
- --font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono',
- 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro',
- 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;
+ --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
+ "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
+ "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
diff --git a/examples/app-dir-mdx/app/layout.tsx b/examples/app-dir-mdx/app/layout.tsx
index a962055f9a..9e93601451 100644
--- a/examples/app-dir-mdx/app/layout.tsx
+++ b/examples/app-dir-mdx/app/layout.tsx
@@ -1,18 +1,18 @@
-import './globals.css'
+import "./globals.css";
export default function RootLayout({
children,
}: {
- children: React.ReactNode
+ children: React.ReactNode;
}) {
return (
{children}
- )
+ );
}
export const metadata = {
- title: 'Create Next App',
- description: 'Generated by create next app',
-}
+ title: "Create Next App",
+ description: "Generated by create next app",
+};
diff --git a/examples/app-dir-mdx/app/page.module.css b/examples/app-dir-mdx/app/page.module.css
index 11c54801bd..87f36d6d85 100644
--- a/examples/app-dir-mdx/app/page.module.css
+++ b/examples/app-dir-mdx/app/page.module.css
@@ -102,7 +102,7 @@
.center::before,
.center::after {
- content: '';
+ content: "";
left: 50%;
position: absolute;
filter: blur(45px);
@@ -130,7 +130,7 @@
.thirteen::before,
.thirteen::after {
- content: '';
+ content: "";
position: absolute;
z-index: -1;
}
diff --git a/examples/app-dir-mdx/app/page.tsx b/examples/app-dir-mdx/app/page.tsx
index ac6a2f73f8..72d710fba3 100644
--- a/examples/app-dir-mdx/app/page.tsx
+++ b/examples/app-dir-mdx/app/page.tsx
@@ -1,9 +1,9 @@
-import Image from 'next/image'
-import { Inter } from 'next/font/google'
-import styles from './page.module.css'
-import Content from './message.mdx'
+import Image from "next/image";
+import { Inter } from "next/font/google";
+import styles from "./page.module.css";
+import Content from "./message.mdx";
-const inter = Inter({ subsets: ['latin'] })
+const inter = Inter({ subsets: ["latin"] });
export default function Home() {
return (
@@ -19,7 +19,7 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
- By{' '}
+ By{" "}
- )
+ );
}
diff --git a/examples/app-dir-mdx/mdx-components.tsx b/examples/app-dir-mdx/mdx-components.tsx
index 5e157b1df7..9851ff60b2 100644
--- a/examples/app-dir-mdx/mdx-components.tsx
+++ b/examples/app-dir-mdx/mdx-components.tsx
@@ -1,4 +1,4 @@
-import type { MDXComponents } from 'mdx/types'
+import type { MDXComponents } from "mdx/types";
// This file is required to use MDX in `app` directory.
export function useMDXComponents(components: MDXComponents): MDXComponents {
@@ -6,5 +6,5 @@ export function useMDXComponents(components: MDXComponents): MDXComponents {
// Allows customizing built-in components, e.g. to add styling.
// h1: ({ children }) =>