Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import {createServer, DefaultProvider} from '@shopify/react-server';
// @ts-ignore
import App from 'index';
const render = ctx =>
React.createElement(
DefaultProvider,
null,
React.createElement(App, {
server: true,
location: ctx.request.url,
}),
);
const app = createServer({
render,
});
export default app;