Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9f17709

Browse files
committedDec 6, 2024·
fix predictions front end configuration example
1 parent 943d681 commit 9f17709

File tree

1 file changed

+2
-2
lines changed
  • src/pages/[platform]/build-a-backend/add-aws-services/predictions/set-up-predictions

1 file changed

+2
-2
lines changed
 

‎src/pages/[platform]/build-a-backend/add-aws-services/predictions/set-up-predictions/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ npm add aws-amplify
153153
Import and load the configuration file in your app. It is recommended you add the Amplify configuration step to your app's root entry point. For example `main.ts` in React and Angular.
154154

155155
```ts title="src/main.ts"
156-
import { Predictions } from "aws-amplify/predictions";
156+
import { Amplify } from "aws-amplify";
157157
import outputs from "./amplify_outputs.json";
158158

159159
Amplify.configure(outputs);
160160

161161
Amplify.configure({
162162
...Amplify.getConfig(),
163-
Predictions: config.custom.Predictions,
163+
Predictions: outputs.custom.Predictions,
164164
});
165165
```

0 commit comments

Comments
 (0)
Please sign in to comment.