File tree 2 files changed +12
-0
lines changed
packages/vite-plugin-cloudflare-functions/src/vite
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,13 @@ export function CloudflarePagesFunctions(userConfig: UserConfig = {}): Plugin {
101
101
path . join ( functionsRoot , '.wrangler/state' ) ,
102
102
...bindings
103
103
] ;
104
+
105
+ const compatibilityDate = userConfig . wrangler ?. compatibilityDate ;
106
+ if ( compatibilityDate ) {
107
+ command . push ( '--compatibility-date' ) ;
108
+ command . push ( compatibilityDate ) ;
109
+ }
110
+
104
111
debug ( command ) ;
105
112
106
113
wranglerProcess = spawn ( 'npx' , command , {
Original file line number Diff line number Diff line change @@ -65,5 +65,10 @@ export interface UserConfig {
65
65
* Bind R2 bucket
66
66
*/
67
67
r2 ?: string | string [ ] ;
68
+
69
+ /**
70
+ * Determines which version of the Workers runtime is used.
71
+ */
72
+ compatibilityDate ?: string ;
68
73
} ;
69
74
}
You can’t perform that action at this time.
0 commit comments