Skip to content

Commit ff7c615

Browse files
committed
fix: cache theme and color for share card
1 parent bcd75d4 commit ff7c615

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nuxt.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ export default defineNuxtConfig({
100100
routeRules: {
101101
// API routes
102102
'/api/**': { isr: 60 },
103+
'/api/card/**': {
104+
isr: {
105+
expiration: 60,
106+
passQuery: true,
107+
allowQuery: ['theme', 'color'],
108+
},
109+
},
103110
'/api/registry/badge/**': {
104111
isr: {
105112
expiration: 60 * 60 /* one hour */,

0 commit comments

Comments
 (0)