The input used to create the runWithAmplifyServerContext
function.
An object that contains the runWithAmplifyServerContext
function.
This function should be called only once; you can use the returned runWithAmplifyServerContext
across
your codebase.
import { createServerRunner } from '@aws-amplify/adapter-nextjs';
import config from './amplifyconfiguration.json';
export const { runWithAmplifyServerContext } = createServerRunner({ config })
Creates the
runWithAmplifyServerContext
function to run Amplify server side APIs in an isolated request context.