Skip to content

Commit

Permalink
amplifyConfig -> outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
josefaidt committed May 1, 2024
1 parent 21b196e commit c040d28
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import outputs from '@/amplify_outputs.json';
import { cookies } from 'next/headers';

export const cookieBasedClient = generateServerClientUsingCookies<Schema>({
config: amplifyConfig,
config: outputs,
cookies,
});
```
Expand All @@ -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<Schema>({
config: amplifyConfig,
config: outputs,
});
```

Expand Down Expand Up @@ -134,7 +134,7 @@ import outputs from '@/amplify_outputs.json';
import { cookies } from 'next/headers';

export const cookieBasedClient = generateServerClientUsingCookies<Schema>({
config: amplifyConfig,
config: outputs,
cookies,
});

Expand Down

0 comments on commit c040d28

Please sign in to comment.