Amplify JS API Documentation
    Preparing search index...
    createServerRunner: CreateServerRunner = ...

    Creates the runWithAmplifyServerContext function to run Amplify server side APIs in an isolated request context.

    This function should be called only once; you can use the returned runWithAmplifyServerContext across your codebase.

    The input used to create the runWithAmplifyServerContext function.

    The ResourcesConfig imported from the amplifyconfiguration.json file or manually created.

    An object that contains the runWithAmplifyServerContext function.

    import { createServerRunner } from '@aws-amplify/adapter-nextjs';
    import config from './amplifyconfiguration.json';

    export const { runWithAmplifyServerContext } = createServerRunner({ config })