Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Revert "correnct content type"
Browse files Browse the repository at this point in the history
This reverts commit 5592aad.
  • Loading branch information
lukesthl committed Sep 22, 2023
1 parent 5592aad commit ad0361a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
12 changes: 2 additions & 10 deletions public/.well-known/apple-app-site-association
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,8 @@
"appIDs": [
"3X5J8LXMDM.com.lukesthl.expo-supertokens"
],
"components": [
{
"/": "*",
"comment": "Matches all routes"
},
{
"/": "/auth/*",
"comment": "Matches any route whose path starts with /auth/",
"exclude": true
}
"paths": [
"*"
]
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ async function bootstrap() {

app.useStaticAssets(join(__dirname, '..', 'public'), {
setHeaders: (res, path) => {
if (path.includes('apple-app-site-association')) {
res.set('Content-Type', 'application/pkcs7-mime');
if (!path.endsWith('json')) {
res.set('Content-Type', 'application/json');
}
},
});
Expand Down

0 comments on commit ad0361a

Please sign in to comment.