Skip to content

Commit

Permalink
Merge pull request #4321 from luke-h1/dev
Browse files Browse the repository at this point in the history
merge dev into main
  • Loading branch information
luke-h1 authored Jan 19, 2024
2 parents 2ed883b + 12515f2 commit 3cc0d67
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 29 deletions.
9 changes: 8 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { createVanillaExtractPlugin } = require('@vanilla-extract/next-plugin');
const million = require('million/compiler');

const withVanillaExtract = createVanillaExtractPlugin();

Expand Down Expand Up @@ -63,6 +64,7 @@ const nextConfig = {
},
experimental: {
webVitalsAttribution: ['CLS', 'LCP'],
optimizePackageImports: ['framer-motion'],
},
images: {
remotePatterns: [
Expand Down Expand Up @@ -130,4 +132,9 @@ const nextConfig = {
},
};

module.exports = withVanillaExtract(nextConfig);
const millionConfig = {
mute: true,
auto: { rsc: true },
};

module.exports = million.next(withVanillaExtract(nextConfig), millionConfig);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"groq": "3.25.0",
"js-cookie": "^3.0.5",
"lodash": "^4.17.21",
"million": "^2.6.4",
"motion": "^10.17.0",
"nanoid": "^5.0.4",
"newrelic": "^11.9.0",
Expand Down
97 changes: 69 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3cc0d67

Please sign in to comment.