File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ import process from 'node:process'
12import { defineNuxtModule } from 'nuxt/kit'
23import { provider } from 'std-env'
34
@@ -27,6 +28,11 @@ export default defineNuxtModule({
2728 ...nitroConfig . storage [ FETCH_CACHE_STORAGE_BASE ] ,
2829 driver : 'vercel-runtime-cache' ,
2930 }
31+
32+ const env = process . env . VERCEL_ENV
33+ nitroConfig . storage . atproto = {
34+ driver : env === 'production' ? 'vercel-kv' : 'vercel-runtime-cache' ,
35+ }
3036 } )
3137 } ,
3238} )
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ export default defineNuxtConfig({
152152 driver : 'fsLite' ,
153153 base : './.cache/fetch' ,
154154 } ,
155- 'generic-cache ' : {
155+ 'atproto ' : {
156156 driver : 'fsLite' ,
157- base : './.cache/generic ' ,
157+ base : './.cache/atproto ' ,
158158 } ,
159159 } ,
160160 typescript : {
You can’t perform that action at this time.
0 commit comments