File tree Expand file tree Collapse file tree 8 files changed +16
-7
lines changed
packages/create-cloudflare Expand file tree Collapse file tree 8 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " create-cloudflare " : patch
3+ ---
4+
5+ Add the ` global_fetch_strictly_public ` flag to workers template
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export type TemplateConfig = {
132132 ctx : C3Context ,
133133 ) => Promise < Record < string , string | object > > ;
134134
135- /** An array of compatibility flags to be specified when deploying to pages or workers. */
135+ /** An array of compatibility flags to be specified when deploying to pages (unused for workers) */
136136 compatibilityFlags ?: string [ ] ;
137137
138138 /** The key of the package.json "scripts" entry for deploying the project. Defaults to `pages:deploy` */
Original file line number Diff line number Diff line change 33 "main" : " ./dist/_worker.js/index.js" ,
44 "compatibility_date" : " <TBD>" ,
55 "compatibility_flags" : [
6- " nodejs_compat"
6+ " nodejs_compat" ,
7+ " global_fetch_strictly_public"
78 ],
89 "assets" : {
910 "binding" : " ASSETS" ,
Original file line number Diff line number Diff line change 33 "main" : " ./dist/_worker.js/index.js" ,
44 "compatibility_date" : " <TBD>" ,
55 "compatibility_flags" : [
6- " nodejs_compat"
6+ " nodejs_compat" ,
7+ " global_fetch_strictly_public"
78 ],
89 "assets" : {
910 "binding" : " ASSETS" ,
Original file line number Diff line number Diff line change 33 "main" : " src/index.js" ,
44 "compatibility_date" : " <TBD>" ,
55 "compatibility_flags" : [
6- " nodejs_compat"
6+ " nodejs_compat" ,
7+ " global_fetch_strictly_public"
78 ],
89 "assets" : {
910 "binding" : " ASSETS" ,
Original file line number Diff line number Diff line change 33 "main" : " src/index.ts" ,
44 "compatibility_date" : " <TBD>" ,
55 "compatibility_flags" : [
6- " nodejs_compat"
6+ " nodejs_compat" ,
7+ " global_fetch_strictly_public"
78 ],
89 "assets" : {
910 "binding" : " ASSETS" ,
Original file line number Diff line number Diff line change @@ -68,5 +68,4 @@ export default {
6868 deployScript : "deploy" ,
6969 typesPath,
7070 envInterfaceName,
71- compatibilityFlags : [ "nodejs_compat" ] ,
7271} as TemplateConfig ;
Original file line number Diff line number Diff line change 33 "main" : " ./dist/_worker.js" ,
44 "compatibility_date" : " <TBD>" ,
55 "compatibility_flags" : [
6- " nodejs_compat"
6+ " nodejs_compat" ,
7+ " global_fetch_strictly_public"
78 ],
89 "assets" : {
910 "binding" : " ASSET" ,
You can’t perform that action at this time.
0 commit comments