File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,9 @@ export const applyConfigurationDefaults = (
1010 account_id : configuration ?. account_id ?? - 1 ,
1111 script_id : configuration ?. script_id ?? - 1 ,
1212 debug : configuration ?. debug ?? false ,
13+ static_routing : configuration ?. static_routing ?? {
14+ version : 1 ,
15+ include : [ ] ,
16+ } ,
1317 } ;
1418} ;
Original file line number Diff line number Diff line change @@ -6,8 +6,15 @@ const InternalConfigSchema = z.object({
66 debug : z . boolean ( ) . optional ( ) ,
77} ) ;
88
9+ const StaticRoutingSchema = z . object ( {
10+ version : z . literal ( 1 ) ,
11+ include : z . array ( z . string ( ) ) ,
12+ exclude : z . array ( z . string ( ) ) . optional ( ) ,
13+ } ) ;
14+
915export const RouterConfigSchema = z . object ( {
1016 invoke_user_worker_ahead_of_assets : z . boolean ( ) . optional ( ) ,
17+ static_routing : StaticRoutingSchema . optional ( ) ,
1118 has_user_worker : z . boolean ( ) . optional ( ) ,
1219 ...InternalConfigSchema . shape ,
1320} ) ;
You can’t perform that action at this time.
0 commit comments