Skip to content

Commit

Permalink
fix predictions front end configuration example
Browse files Browse the repository at this point in the history
  • Loading branch information
jjarvisp committed Dec 6, 2024
1 parent 943d681 commit 9f17709
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ npm add aws-amplify
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.

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

Amplify.configure(outputs);

Amplify.configure({
...Amplify.getConfig(),
Predictions: config.custom.Predictions,
Predictions: outputs.custom.Predictions,
});
```

0 comments on commit 9f17709

Please sign in to comment.