Skip to content

Commit 8f48aca

Browse files
authored
Nextjs 14.2.7 (#12842)
1 parent 85c5bb7 commit 8f48aca

File tree

4 files changed

+63
-44
lines changed

4 files changed

+63
-44
lines changed

pnpm-lock.yaml

+54-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

polaris.shopify.com/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

polaris.shopify.com/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"lodash.mapvalues": "^4.6.0",
4545
"lodash.throttle": "^4.1.1",
4646
"nanoid": "^4.0.2",
47-
"next": "^13.5.7",
47+
"next": "^14.2.7",
4848
"next-mdx-remote": "^4.4.1",
4949
"prismjs": "^1.27.0",
5050
"react": "^18.2.0",

polaris.shopify.com/pages/_app.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {useEffect, StrictMode} from 'react';
55
import {useRouter} from 'next/router';
66
import useDarkMode from 'use-dark-mode';
77
import '@shopify/polaris/build/esm/styles.css';
8+
import pkg from '../package.json';
89

910
import {className} from '../src/utils/various';
1011
import Frame from '../src/components/Frame';
@@ -102,7 +103,12 @@ function MyApp({Component, pageProps}: AppProps) {
102103
</Head>
103104

104105
<div
105-
style={{background: isPolarisExample ? '#fafafa' : 'unset'}}
106+
style={
107+
{
108+
background: isPolarisExample ? '#fafafa' : 'unset',
109+
'--polaris-shopify-com-version': pkg.version,
110+
} as React.CSSProperties
111+
}
106112
className={className(
107113
!isPolarisExample && 'styles-for-site-but-not-polaris-examples',
108114
)}

0 commit comments

Comments
 (0)