diff --git a/src/pages/gen2/build-a-backend/data/connect-from-server-runtime/index.mdx b/src/pages/gen2/build-a-backend/data/connect-from-server-runtime/index.mdx index 3e7bce9a3dd..2e26c7b3f55 100644 --- a/src/pages/gen2/build-a-backend/data/connect-from-server-runtime/index.mdx +++ b/src/pages/gen2/build-a-backend/data/connect-from-server-runtime/index.mdx @@ -75,7 +75,7 @@ import outputs from '@/amplify_outputs.json'; import { cookies } from 'next/headers'; export const cookieBasedClient = generateServerClientUsingCookies({ - config: amplifyConfig, + config: outputs, cookies, }); ``` @@ -99,11 +99,11 @@ import { generateServerClientUsingReqRes } from '@aws-amplify/adapter-nextjs/dat import outputs from '@/amplify_outputs.json'; export const { runWithAmplifyServerContext } = createServerRunner({ - config: amplifyConfig, + config: outputs, }); export const reqResBasedClient = generateServerClientUsingReqRes({ - config: amplifyConfig, + config: outputs, }); ``` @@ -134,7 +134,7 @@ import outputs from '@/amplify_outputs.json'; import { cookies } from 'next/headers'; export const cookieBasedClient = generateServerClientUsingCookies({ - config: amplifyConfig, + config: outputs, cookies, });