@@ -111,7 +111,8 @@ public static void AddPlayer(this IDistributedApplicationBuilder builder, IResou
111111 if ( ! options . AddAllApplications && ! options . Player )
112112 return ;
113113
114- var playerDb = postgres . AddDatabase ( "playerDb" , "player" ) ;
114+ var playerDb = postgres . AddDatabase ( "playerDb" , "player" )
115+ . WithDevSettings ( ) ;
115116
116117 builder . ConfigureApiSecrets (
117118 new Projects . Player_Api ( ) . ProjectPath ,
@@ -149,8 +150,10 @@ public static void AddPlayer(this IDistributedApplicationBuilder builder, IResou
149150
150151 private static void AddPlayerVm ( this IDistributedApplicationBuilder builder , IResourceBuilder < PostgresServerResource > postgres , IResourceBuilder < KeycloakResource > keycloak , bool startByDefault )
151152 {
152- var vmDb = postgres . AddDatabase ( "vmDb" , "player_vm" ) ;
153- var vmLoggingDb = postgres . AddDatabase ( "vmLoggingDb" , "player_vm_logging" ) ;
153+ var vmDb = postgres . AddDatabase ( "vmDb" , "player_vm" )
154+ . WithDevSettings ( ) ;
155+ var vmLoggingDb = postgres . AddDatabase ( "vmLoggingDb" , "player_vm_logging" )
156+ . WithDevSettings ( ) ;
154157
155158 builder . ConfigureApiSecrets (
156159 new Projects . Player_Vm_Api ( ) . ProjectPath ,
@@ -205,7 +208,8 @@ public static void AddCaster(this IDistributedApplicationBuilder builder, IResou
205208 if ( ! options . AddAllApplications && ! options . Caster )
206209 return ;
207210
208- var casterDb = postgres . AddDatabase ( "casterDb" , "caster" ) ;
211+ var casterDb = postgres . AddDatabase ( "casterDb" , "caster" )
212+ . WithDevSettings ( ) ;
209213
210214 builder . ConfigureApiSecrets (
211215 new Projects . Caster_Api ( ) . ProjectPath ,
@@ -268,7 +272,8 @@ public static void AddAlloy(this IDistributedApplicationBuilder builder, IResour
268272 if ( ! options . AddAllApplications && ! options . Alloy )
269273 return ;
270274
271- var alloyDb = postgres . AddDatabase ( "alloyDb" , "alloy" ) ;
275+ var alloyDb = postgres . AddDatabase ( "alloyDb" , "alloy" )
276+ . WithDevSettings ( ) ;
272277
273278 builder . ConfigureApiSecrets (
274279 new Projects . Alloy_Api ( ) . ProjectPath ,
@@ -316,7 +321,8 @@ public static void AddTopoMojo(this IDistributedApplicationBuilder builder, IRes
316321 if ( ! options . AddAllApplications && ! options . TopoMojo )
317322 return ;
318323
319- var topoDb = postgres . AddDatabase ( "topoDb" , "topomojo" ) ;
324+ var topoDb = postgres . AddDatabase ( "topoDb" , "topomojo" )
325+ . WithDevSettings ( ) ;
320326
321327 builder . ConfigureApiSecrets (
322328 new Projects . TopoMojo_Api ( ) . ProjectPath ,
@@ -385,7 +391,8 @@ public static void AddSteamfitter(this IDistributedApplicationBuilder builder, I
385391 if ( ! options . AddAllApplications && ! options . Steamfitter )
386392 return ;
387393
388- var steamfitterDb = postgres . AddDatabase ( "steamfitterDb" , "steamfitter" ) ;
394+ var steamfitterDb = postgres . AddDatabase ( "steamfitterDb" , "steamfitter" )
395+ . WithDevSettings ( ) ;
389396
390397 builder . ConfigureApiSecrets (
391398 new Projects . Steamfitter_Api ( ) . ProjectPath ,
@@ -431,7 +438,8 @@ public static void AddCite(this IDistributedApplicationBuilder builder, IResourc
431438 if ( ! options . AddAllApplications && ! options . Cite )
432439 return ;
433440
434- var citeDb = postgres . AddDatabase ( "citeDb" , "cite" ) ;
441+ var citeDb = postgres . AddDatabase ( "citeDb" , "cite" )
442+ . WithDevSettings ( ) ;
435443
436444 builder . ConfigureApiSecrets (
437445 new Projects . Cite_Api ( ) . ProjectPath ,
@@ -477,7 +485,8 @@ public static void AddGallery(this IDistributedApplicationBuilder builder, IReso
477485 if ( ! options . AddAllApplications && ! options . Gallery )
478486 return ;
479487
480- var galleryDb = postgres . AddDatabase ( "galleryDb" , "gallery" ) ;
488+ var galleryDb = postgres . AddDatabase ( "galleryDb" , "gallery" )
489+ . WithDevSettings ( ) ;
481490
482491 builder . ConfigureApiSecrets (
483492 new Projects . Gallery_Api ( ) . ProjectPath ,
@@ -523,7 +532,8 @@ public static void AddBlueprint(this IDistributedApplicationBuilder builder, IRe
523532 if ( ! options . AddAllApplications && ! options . Blueprint )
524533 return ;
525534
526- var blueprintDb = postgres . AddDatabase ( "blueprintDb" , "blueprint" ) ;
535+ var blueprintDb = postgres . AddDatabase ( "blueprintDb" , "blueprint" )
536+ . WithDevSettings ( ) ;
527537
528538 builder . ConfigureApiSecrets (
529539 new Projects . Blueprint_Api ( ) . ProjectPath ,
@@ -568,7 +578,8 @@ public static void AddGameboard(this IDistributedApplicationBuilder builder, IRe
568578 if ( ! options . AddAllApplications && ! options . Gameboard )
569579 return ;
570580
571- var gameboardDb = postgres . AddDatabase ( "gameboardDb" , "gameboard" ) ;
581+ var gameboardDb = postgres . AddDatabase ( "gameboardDb" , "gameboard" )
582+ . WithDevSettings ( ) ;
572583
573584 builder . ConfigureApiSecrets (
574585 new Projects . Gameboard_Api ( ) . ProjectPath ,
@@ -781,4 +792,5 @@ private static void SetUserSecret(string projectFilePath, string key, string val
781792 return - 1 ;
782793 }
783794 }
795+
784796}
0 commit comments