status omits API_URL when [api] enabled = false, although Kong is still started (same class as #5332)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- cli
Línea de trabajo
Empieza en apps/cli/src/commands/start/start.gates.ts y compara su gating de Kong con apps/cli/src/command-internal/legacy-status-values.ts y status-values.ts. Traza cómo kongEnabled controla API_URL frente a REST_URL y GRAPHQL_URL. Se considera terminado cuando status -o env informa de API_URL siempre que Kong esté ejecutándose, mientras las URL de la API de datos siguen dependiendo de api.enabled; reprodúcelo con [api] enabled = false y verifica la salida.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Affected area
Local development
Supabase CLI version
v2.117.0 (the same gating is still on develop and in v2.120.0-beta.7)
Operating system
macOS 26.3.1 (Apple silicon)
Installation method
npm (npx supabase)
Command
supabase start
supabase status -o env
with [api] enabled = false in supabase/config.toml.
Actual output
supabase status -o env prints no API_URL (nor REST_URL / GRAPHQL_URL). The keys it prints are:
ANON_KEY DB_URL INBUCKET_URL JWT_SECRET MAILPIT_URL PUBLISHABLE_KEY SECRET_KEY SERVICE_ROLE_KEY
Kong is nevertheless running and serving the other services through the same address:
$ curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:<api.port>/auth/v1/health
200
$ curl -si http://127.0.0.1:<api.port>/rest/v1/ | head -1
HTTP/1.1 503 Service Temporarily Unavailable # Server: kong/2.8.1, {"message":"name resolution failed"}
Expected behavior
API_URL is printed whenever Kong is running, because it is the gateway for Auth, Storage and Functions, not only for the Data API. Only REST_URL / GRAPHQL_URL should depend on api.enabled.
This is the same class of problem as #5332 (fixed by #5335 for supabase start -x postgrest), but reached through [api] enabled = false instead of -x:
apps/cli/src/commands/start/start.gates.ts(v2.117.0, line 160):kong: !isExcluded("kong")— Kong starts regardless ofapi.enabled; onlypostgrestis gated onapiEnabled(line 164).apps/cli/src/command-internal/legacy-status-values.ts(v2.117.0, line 392) andstatus-values.tsondevelop(line 340):const kongEnabled = apiEnabled && !isExcluded(containerIds.kong) && !isExcluded(KONG_IMAGE_NAME);— soAPI_URLis hidden wheneverapi.enabledis false.
A possible fix is to gate kongEnabled the same way start does (on Kong's own exclusion only), and keep apiEnabled for postgrestEnabled / REST_URL / GRAPHQL_URL.
Steps to reproduce
- In
supabase/config.toml, set[api] enabled = false(the app uses Auth but not the Data API). - Run
supabase start. - Run
supabase status -o env—API_URLis missing. - Run
curl http://127.0.0.1:<api.port>/auth/v1/health— returns 200, so the gateway is up at the addressstatusdid not print.
Additional context
We close the Data API both locally and in production so that the local stack has the same shape as production. Because status no longer names the gateway, local tooling that reads API_URL from supabase status -o env (for NEXT_PUBLIC_SUPABASE_URL) has to rebuild the URL from [api] port instead.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.4k
- Forks
- 537
- Merge medio
- 21 h 24 min
- PR fusionados (30 d)
- 378
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de supabase/cli
-
config push: changing auth.oauth_server.authorization_url_path fails with 400 (enabled and path must be sent together)Posiblemente ocupada @itz-puneet la tomó hace 1 día. Abierto🐛 Bug supabase/cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
supabase/cli#7087 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
db schema declarative sync: no way to fail (non-zero exit) when the generated migration is destructiveQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto✨ Feature supabase/cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
stack: the HTTP gateway closes idle keep-alive connections after 5 s, so a client whose event loop is blocked gets ECONNRESET (`fetch failed`) on its next requestPosiblemente ocupada @7ttp la tomó hace 15 días. Abierto🐛 Bug supabase/cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
supabase/cli#6975 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
📘 Docs supabase/cli
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
supabase/cli#6974 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Migration error caret is missing or misplaced when the statement contains multibyte charactersAbierto🐛 Bug supabase/cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
Todos los issues de supabase/cli
Issues similares
-
bug priority: P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
mattermost/compass-design#106 ·
Los mantenedores suelen responder en 1 día
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
openclaw/openclaw#176671 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
nordcraftengine/nordcraft#1400 ·
Los mantenedores suelen responder en 1 día