feat: Update default API endpoint to production URL in ApiConfig and settings screen

This commit is contained in:
2026-05-21 08:18:45 +02:00
parent c0372b3587
commit 0e450df50d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class ApiConfig {
static const String _endpointKey = 'api_endpoint_v1'; static const String _endpointKey = 'api_endpoint_v1';
/// Default endpoint for local development. Can be overridden by user. /// Default endpoint for local development. Can be overridden by user.
static const String defaultEndpoint = 'http://localhost:3000/api'; static const String defaultEndpoint = 'https://notas-api.lpncnd.es/api';
static Future<String> getEndpoint() async { static Future<String> getEndpoint() async {
final prefs = await SharedPreferences.getInstance(); final prefs = await SharedPreferences.getInstance();
+1 -1
View File
@@ -524,7 +524,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
], ],
), ),
const SizedBox(height: 24), const SizedBox(height: 24),
const Text('API endpoint (ej: http://localhost:3000/api)'), const Text('API endpoint (ej: https://notas-api.lpncnd.es/api)'),
const SizedBox(height: 8), const SizedBox(height: 8),
_buildResponsiveInputActionsRow( _buildResponsiveInputActionsRow(
input: _endpointLoading input: _endpointLoading