Skip to content

Commit b82b64a

Browse files
author
Frank
committed
Site: set default content type for .well-known/apple-app-site-association
1 parent 976055f commit b82b64a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

platform/src/components/base/base-site.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ export interface BaseSiteFileOptions {
5454
}
5555

5656
export function getContentType(filename: string, textEncoding: string) {
57-
const ext = filename.endsWith(".well-known/site-association-json")
58-
? ".json"
59-
: path.extname(filename);
57+
const ext =
58+
filename.endsWith(".well-known/site-association-json") ||
59+
filename.endsWith(".well-known/apple-app-site-association")
60+
? ".json"
61+
: path.extname(filename);
6062
const extensions = {
6163
[".txt"]: { mime: "text/plain", isText: true },
6264
[".htm"]: { mime: "text/html", isText: true },

0 commit comments

Comments
 (0)