"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cli_core_1 = require("@bluebase/cli-core");
// Middleware to serve our service worker.
const serviceWorkerMiddleware = (configs) => (_req, res, _next) => {
    res.sendFile(cli_core_1.Utils.fromProjectRoot(`./${configs.client.outputPath}/${configs.server.serviceWorker.fileName}`));
};
exports.default = serviceWorkerMiddleware;
//# sourceMappingURL=serviceWorker.js.map