fix(dev): make local Firebase and LAN startup deterministic#23
Draft
WILLIAMMDN wants to merge 1 commit into
Draft
fix(dev): make local Firebase and LAN startup deterministic#23WILLIAMMDN wants to merge 1 commit into
WILLIAMMDN wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué cambia
/api/v1en desarrollo y un proxy de Angular hacia Laravel local;npm run start:lanpara pruebas desde teléfonos en una red privada;.envoFIREBASE_PROJECT_ID;.envlocal con-EnvSourcesin versionarlo;/saluduna señal booleana, no secreta, del estado de Firebase;Causa raíz
Los worktrees no heredan archivos ignorados como
backend-laravel/.env. Además, el frontend de desarrollo usabahttp://localhost:8000, que desde un teléfono apunta al propio teléfono, mientras Laravel y Angular escuchaban solo en loopback y CORS no autorizaba la IP privada. Los datos no estaban eliminados.Impacto
El mismo frontend funciona desde localhost o desde la IP privada mediante un origen único. Los errores de configuración de Firebase aparecen antes de abrir los servidores y ya no se confunden con cursos o estudiantes ausentes.
Validación
10.0.0.9: 200git diff --check: OKSeguridad
No contiene
.env, claves ni credenciales. Producción, Firebase Hosting y la configuración cloud no cambian. La modalidad LAN debe usarse solo en una red privada de confianza.