Skip to content

Commit

Permalink
perf: store font data in node_modules/.cache
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 6, 2024
1 parent b5e7231 commit ed3e9e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ export function setupPublicAssetStrategy (options: ModuleOptions['assets'] = {})
}],
prerender: {
ignore: [assetsBaseURL]
},
// TODO: refactor to use nitro storage when it can be cached between builds
storage: {
'data:fonts:': {
driver: 'fs',
base: 'node_modules/.cache/nuxt-fonts/data'
}
}
} satisfies NitroConfig)

Expand Down

0 comments on commit ed3e9e5

Please sign in to comment.