Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Unable to serve file without extension .well-known/apple-app-site-association

Abierto
#142 5 comentarios 7 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript
Área
backend, web-dev

Línea de trabajo

Start with the serve -s /web/build --listen 5000 --no-clipboard entry point and the reported serve.json cleanUrls configuration. Reproduce both .well-known/apple-app-site-association and .well-known/assetlinks.json requests with curl, then trace why the extensionless file receives index.html. Done means the Apple association file is served directly while the existing SPA fallback still works.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Using serve to deliver a static pre-built create-react-app.

serve -s /web/build --listen 5000 --no-clipboard

The file .well-known/apple-app-site-association is part of the served directory but user receives the contents of index.html instead of the static file.

$ curl -v frontend:5000/.well-known/apple-app-site-association
*   Trying 172.26.0.6...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55d399370f50)
* Connected to frontend (172.26.0.6) port 5000 (#0)
> GET /.well-known/apple-app-site-association HTTP/1.1
> Host: frontend:5000
> User-Agent: curl/7.64.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Length: 3668
< Content-Disposition: inline; filename="index.html"
< Accept-Ranges: bytes
< ETag: "5f5cc5f26a26ca0e5c724317646b36fa5c9f84f5"
< Content-Type: text/html; charset=utf-8
< Vary: Accept-Encoding
< Date: Tue, 16 Feb 2021 09:51:45 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
< 
<!doctype html>...

A file just next to it .well-known/assetlinks.json is being resolved correctly.

$ curl -v frontend:5000/.well-known/assetlinks.json
*   Trying 172.26.0.6...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x557f10cd4f50)
* Connected to frontend (172.26.0.6) port 5000 (#0)
> GET /.well-known/assetlinks.json HTTP/1.1
> Host: frontend:5000
> User-Agent: curl/7.64.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Length: 647
< Content-Disposition: inline; filename="assetlinks.json"
< Accept-Ranges: bytes
< ETag: "dd82311f2234ea4637b771ce3f7a4be2a5253fd5"
< Content-Type: application/json; charset=utf-8
< Vary: Accept-Encoding
< Date: Tue, 16 Feb 2021 09:55:17 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
< 
[
  {
    "relation"....

I've tried defining a serve.json config with excluded directory in cleanUrls but did not solve it.

{
    "cleanUrls": [
      "/**",
      "/!.well-known/**"
    ]
}

Universal Links documentation: https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html

Any help would be appreciated!

Lenguaje dominante
JavaScript
Estrellas
617
Forks
119
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de vercel/serve-handler

Todos los issues de vercel/serve-handler

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.