We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7092b7d commit 8ab2606Copy full SHA for 8ab2606
packages/@aws-cdk/aws-amplify-alpha/README.md
@@ -102,12 +102,14 @@ Auto build and pull request preview are enabled by default.
102
Add custom rules for redirection:
103
104
```ts
105
+import { CustomRule } from '@aws-cdk/aws-amplify-alpha';
106
+
107
declare const amplifyApp: amplify.App;
-amplifyApp.addCustomRule({
108
+amplifyApp.addCustomRule(new CustomRule({
109
source: '/docs/specific-filename.html',
110
target: '/documents/different-filename.html',
111
status: amplify.RedirectStatus.TEMPORARY_REDIRECT,
-});
112
+}));
113
```
114
115
When working with a single page application (SPA), use the
0 commit comments