Skip to content

Commit

Permalink
try adapter as peer
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev committed Oct 21, 2023
1 parent 64459a1 commit 2325f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function generateModelsProperty<T extends Record<any, any> = never>(
params: ClientGenerationParams
): ModelTypes<T> {
const models = {} as any;
// params.config gets populated in SSR only; otherwise we get it from the singleton
const config: any = params.config ?? Amplify.getConfig();

logger.debug('AMPLIFY', params.amplify);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "../lib-esm/server.js",
"react-native": "../lib-esm/server.js",
"sideEffects": false,
"dependencies": {
"peerDependencies": {
"@aws-amplify/adapter-nextjs": "0.0.1"
}
}

0 comments on commit 2325f05

Please sign in to comment.