UNPKG

@platform/react.ssr

Version:

An SSR (server-side-render) system for react apps bundled with ParcelJS and hosted on S3.

16 lines (15 loc) 402 B
import { micro } from '../common'; import * as routes from './routes'; export function init(args) { const { manifestUrl, baseUrl, secret } = args; const res = micro.init({ log: { secret: Boolean(secret), manifestUrl, baseUrl, }, }); const { router } = res; routes.init({ router, manifestUrl, baseUrl, secret }); return res; }