function execute(options, context) {
        return __awaiter(this, void 0, void 0, function* () {
            const browserTarget = architect_1.targetFromTargetString(options.browserTarget);
            const browserOptions = (yield context.getTargetOptions(browserTarget));
            const tsConfigPath = typeof browserOptions.tsConfig === 'string' ? browserOptions.tsConfig : undefined;
            const routes = yield utils_1.getRoutes(options, tsConfigPath, context);
            if (!routes.length) {
                throw new Error(`Could not find any routes to prerender.`);
            }
            const result = yield _scheduleBuilds(options, context);
            const { success, error, browserResult, serverResult } = result;
            if (!success || !browserResult || !serverResult) {
                return { success, error };
            }
            return _renderUniversal(routes, context, browserResult, serverResult, browserOptions, options.numProcesses);
        });
    }
/**
     * Builds the browser and server, then renders each route in options.routes
     * and writes them to prerender/<route>/index.html for each output path in
     * the browser result.
     */
Builds the browser and server, then renders each route in options.routes
and writes them to prerender//index.html for each output path in
the browser result.
Builds the browser and server then renders each route in options . routes and writes them to prerender // index . html for each output path in the browser result .
function execute(options, context) {
        return __awaiter(this, void 0, void 0, function* () {
            const browserTarget = architect_1.targetFromTargetString(options.browserTarget);
            const browserOptions = (yield context.getTargetOptions(browserTarget));
            const tsConfigPath = typeof browserOptions.tsConfig === 'string' ? browserOptions.tsConfig : undefined;
            const routes = yield utils_1.getRoutes(options, tsConfigPath, context);
            if (!routes.length) {
                throw new Error(`Could not find any routes to prerender.`);
            }
            const result = yield _scheduleBuilds(options, context);
            const { success, error, browserResult, serverResult } = result;
            if (!success || !browserResult || !serverResult) {
                return { success, error };
            }
            return _renderUniversal(routes, context, browserResult, serverResult, browserOptions, options.numProcesses);
        });
    }
function execute ( options , context ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { const browserTarget = architect_1 . targetFromTargetString ( options . browserTarget ) ; const browserOptions = ( yield context . getTargetOptions ( browserTarget ) ) ; const tsConfigPath = typeof browserOptions . tsConfig === 'string' ? browserOptions . tsConfig : undefined ; const routes = yield utils_1 . getRoutes ( options , tsConfigPath , context ) ; if ( ! routes . length ) { throw new Error ( ` ` ) ; } const result = yield _scheduleBuilds ( options , context ) ; const { success , error , browserResult , serverResult } = result ; if ( ! success || ! browserResult || ! serverResult ) { return { success , error } ; } return _renderUniversal ( routes , context , browserResult , serverResult , browserOptions , options . numProcesses ) ; } ) ; }
Builds the browser and server, then renders each route in options.routes
 and writes them to prerender/<route>/index.html for each output path in
 the browser result.
Builds the browser and server then renders each route in options . routes and writes them to prerender / <route > / index . html for each output path in the browser result .