"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const withSSR_1 = __importDefault(require("./withSSR"));
const withoutSSR_1 = __importDefault(require("./withoutSSR"));
/**
 * React application middleware, supports server side rendering.
 */
exports.default = (configs) => (req, res) => configs.server.disableSSR
    ? withoutSSR_1.default(req, res, configs)
    : withSSR_1.default(req, res, configs);
//# sourceMappingURL=index.js.map