import cookieParser = require('cookie-parser');
import * as serialize from 'serialize-javascript';
import * as express from 'express';
import { StaticRouter } from 'inferno-router';
import { renderToString } from 'inferno-server';
import path = require('path');
import App from '../client/components/App/App';
const server = express();
const port = 1234;
server.use(express.json());
server.use(express.urlencoded({ extended: false }));
server.use('/static', express.static(path.resolve('./dist/client')));
server.use(cookieParser());
server.get('/*', (req, res) => {
const context = {} as any;
const isoData = {
name: 'fishing sux',
};
const wrapper = (