From c040d283fddf90002e6bc0b1eb9bbd4739060698 Mon Sep 17 00:00:00 2001 From: josefaidt Date: Tue, 30 Apr 2024 18:53:06 -0700 Subject: [PATCH] amplifyConfig -> outputs --- .../data/connect-from-server-runtime/index.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, });