Skip to content

Commit

Permalink
[keyserver] Serve .well-known from landing endpoint
Browse files Browse the repository at this point in the history
Summary:
In mobile app we're using `comm.app` as deep links. To do that, we need to serve `.well-known` on this url (which is associated with our landing page).

https://linear.app/comm/issue/ENG-4185/cant-open-web-app-if-not-already-logged-in-dev#comment-6dba4247

Test Plan: Check if `/landing/.well-known/assetlinks.json` returns a proper file.

Reviewers: kamil, inka, bartek

Reviewed By: bartek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D8357
  • Loading branch information
palys-swm committed Jun 29, 2023
1 parent 7b5c737 commit 0e0c9c4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions keyserver/src/keyserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,17 @@ import {
if (landingBaseRoutePath) {
const landingRouter = express.Router();
landingRouter.get('/invite/:secret', inviteResponder);
landingRouter.use(
'/.well-known',
express.static(
'.well-known',
// Necessary for apple-app-site-association file
{
setHeaders: res =>
res.setHeader('Content-Type', 'application/json'),
},
),
);
landingRouter.use('/images', express.static('images'));
landingRouter.use('/fonts', express.static('fonts'));
landingRouter.use(
Expand Down

0 comments on commit 0e0c9c4

Please sign in to comment.