Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
uri,
opts: {
credentials: 'same-origin',
headers: request.headers,
},
});
const client = new ApolloClient({
networkInterface,
dataIdFromObject: o => o.id,
ssrMode: true,
});
const App = require('app_alias').default;
// First create a context for , which will allow us to
// query for the results of the render.
const reactRouterContext = createServerRenderContext();
// We also create a context for our which will allow us
// to query which chunks/modules were used during the render process.
const codeSplitContext = createRenderContext();
// Create the application react element.
const app = (
);
const networkInterface = createNetworkInterface({
uri: process.env.GRAPHQL_URL || `${getUri()}/graphql`,
opts: {
credentials: 'same-origin',
headers: request.headers,
},
});
const client = new ApolloClient({
networkInterface,
dataIdFromObject: o => o.id,
ssrMode: true,
});
// First create a context for , which will allow us to
// query for the results of the render.
const reactRouterContext = createServerRenderContext();
// We also create a context for our which will allow us
// to query which chunks/modules were used during the render process.
const codeSplitContext = createRenderContext();
// Create our React application and render it into a string.
const reactApp = (
);