Skip to content

Commit fe53dba

Browse files
committed
refactor: Add demo and development config options
- Added demo config factory - Updated development config - Adjusted base URLs
1 parent a6d209e commit fe53dba

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/app/config/app_config.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ class AppConfig {
1414
'http://api.yourproductiondomain.com', // Replace with actual production URL
1515
);
1616

17-
factory AppConfig.developmentInMemory() => const AppConfig(
18-
environment: AppEnvironment.developmentInMemory,
19-
baseUrl:
20-
'http://localhost:8080', // Base URL still needed for Auth API client, even if data is in-memory
17+
factory AppConfig.demo() => const AppConfig(
18+
environment: AppEnvironment.demo,
19+
baseUrl: '', // No API access needed for in-memory demo
2120
);
2221

23-
factory AppConfig.developmentApi() => const AppConfig(
24-
// New: For local Dart Frog API
25-
environment: AppEnvironment.developmentApi,
22+
factory AppConfig.development() => const AppConfig(
23+
// For local Dart Frog API
24+
environment: AppEnvironment.development,
2625
baseUrl: 'http://localhost:8080', // Default Dart Frog local URL
2726
);
2827

0 commit comments

Comments
 (0)