mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import Head from "next/head";
|
|
import "../styles/globals.css";
|
|
import { AppProps } from "next/app";
|
|
|
|
export default function MyApp({ Component, pageProps }: AppProps) {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<meta charSet="utf-8" />
|
|
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"
|
|
/>
|
|
<meta name="description" content="Description" />
|
|
<meta name="keywords" content="Keywords" />
|
|
<title>Next.js PWA Example</title>
|
|
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<link
|
|
href="/icons/favicon-16x16.png"
|
|
rel="icon"
|
|
type="image/png"
|
|
sizes="16x16"
|
|
/>
|
|
<link
|
|
href="/icons/favicon-32x32.png"
|
|
rel="icon"
|
|
type="image/png"
|
|
sizes="32x32"
|
|
/>
|
|
<link rel="apple-touch-icon" href="/apple-icon.png"></link>
|
|
<meta name="theme-color" content="#317EFB" />
|
|
</Head>
|
|
<Component {...pageProps} />
|
|
</>
|
|
);
|
|
}
|