Unable to serve file without extension .well-known/apple-app-site-association
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
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
- 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 vercel/serve-handler
-
FD leak on 304 Not Modified: opened read stream is never destroyed (leads to EMFILE)Posiblemente ocupada @jaideeppyne la tomó hace 40 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
vercel/serve-handler#235 · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vercel/serve-handler#231 · 2 comentarios · 5 reacciones ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
vercel/serve-handler#165 · 1 comentario ·
-
Allow serving virtual filesAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
vercel/serve-handler#223 ·
-
Rewrite not working with external url with the portQuizá libre de nuevo @symtalha14 la tomó hace 191 días y no hay ningún pull request abierto. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
vercel/serve-handler#210 · 1 comentario · 3 reacciones ·
Todos los issues de vercel/serve-handler
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
apex-dev-tools/apex-log-parser#199 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue hacktoberfest help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
ReadBufferStream.addBuffer adds the full ArrayBuffer of a typed array view, and ignores its byteOffsetPosiblemente ocupada @wayfarer3130 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Expo 57 example: pnpm install fails with ERR_PNPM_TRUST_DOWNGRADEPosiblemente ocupada @github-actions la tomó hoy. Abiertobug react-native team/client-libraries
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
PostHog/posthog-js#5442 · 1 comentario ·
Los mantenedores suelen responder en 1 día