@@ -24,7 +24,7 @@ In your `AppHost` project, call the `AddFlagd` method to add flagd to your appli
2424``` csharp
2525var builder = DistributedApplication .CreateBuilder (args );
2626
27- var flagd = builder .AddFlagd (" flagd" , " flags.json " );
27+ var flagd = builder .AddFlagd (" flagd" , " ./flags " );
2828
2929builder .Build ().Run ();
3030```
@@ -38,7 +38,7 @@ The `fileSource` parameter specifies the path to your flag configuration file on
3838You can configure the logging level for flagd:
3939
4040``` csharp
41- var flagd = builder .AddFlagd (" flagd" , " flags.json " )
41+ var flagd = builder .AddFlagd (" flagd" , " ./flags " ).
4242 .WithLogging (" debug" );
4343```
4444
@@ -49,14 +49,18 @@ Available logging levels are: `debug`, `info`, `warn`, `error`.
4949You can specify a custom port for the flagd HTTP/gRPC endpoints:
5050
5151``` csharp
52- var flagd = builder .AddFlagd (" flagd" , " flags.json " , port : 9090 );
52+ var flagd = builder .AddFlagd (" flagd" , " ./flags " , port : 9090 );
5353```
5454
5555If no port is specified, the default port 8013 will be used.
5656
5757### Flag Configuration Format
5858
59- flagd uses JSON files for flag definitions. Here's a simple example:
59+ flagd uses JSON files for flag definitions. Please refer to the official documentation for more information. You can create
60+ a folder named ` flags ` in your project root and place your ` flagd.json ` file inside it. It is mandatory for the flag configuration
61+ file to be called ` flagd.json ` .
62+
63+ Here's a simple example:
6064
6165``` json
6266{
0 commit comments