aboutsummaryrefslogtreecommitdiff
path: root/src/server/routes/manifest.js
blob: 4cb634252b56279be17fafd38e8be2c4b08de2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const express = require('express');

const router = express.Router();
const path = require('path');

router.get('/', (req, res) => {
  const isBeta = process.env.BETA === '1';

  if (isBeta) {
    res.sendFile('manifest.beta.webmanifest', { root: path.join(__dirname, '../../client/static') });
  } else {
    res.sendFile('manifest.webmanifest', { root: path.join(__dirname, '../../client/static') });
  }
});

module.exports = router;