Skip to content

Commit

Permalink
zeroconfig nuxt-speedkit for now
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwao committed Oct 24, 2023
1 parent a040abc commit dbefdf7
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,27 +267,29 @@ export default defineNuxtConfig({
},
},

speedkit: {
detection: {
performance: true,
browserSupport: true,
},
// https://github.com/kodadot/nft-gallery/issues/5031
// speedkit: {
// detection: {
// performance: true,
// browserSupport: true,
// },

// performanceMetrics: {
// device: {
// hardwareConcurrency: { min: 2, max: 48 },
// deviceMemory: { min: 2 },
// },
// timing: {
// fcp: 800,
// dcl: 1200,
// },
// },
// lazyOffset: {
// component: '0%',
// asset: '0%',
// },
// },

performanceMetrics: {
device: {
hardwareConcurrency: { min: 2, max: 48 },
deviceMemory: { min: 2 },
},
timing: {
fcp: 800,
dcl: 1200,
},
},
lazyOffset: {
component: '0%',
asset: '0%',
},
},
// https://nuxt.com/docs/api/nuxt-config#runtimeconfig
runtimeConfig: {
public: {
Expand Down

0 comments on commit dbefdf7

Please sign in to comment.