Skip to content

Commit

Permalink
update predictions config (#8255)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykethan authored Feb 21, 2025
1 parent 062ce6a commit fc30fb4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,13 @@ Import and load the configuration file in your app. It is recommended you add th

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

Amplify.configure(outputs);
const amplifyConfig = parseAmplifyConfig(outputs);

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

0 comments on commit fc30fb4

Please sign in to comment.