create apple-app-site-association during build

This commit is contained in:
Bruno Windels
2020-12-03 12:35:21 +01:00
parent e8e2f04f01
commit 604dda7380
4 changed files with 54 additions and 24 deletions
+7 -5
View File
@@ -14,14 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
const finalhandler = require('finalhandler')
const http = require('http')
const serveStatic = require('serve-static')
const path = require('path');
import finalhandler from "finalhandler"
import http from "http"
import serveStatic from "serve-static"
import path from "path"
import { fileURLToPath } from "url";
const projectDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../");
// Serve up parent directory with cache disabled
const serve = serveStatic(
path.resolve(__dirname, "../"),
projectDir,
{
etag: false,
setHeaders: res => {