Skip to content

Commit 069299b

Browse files
author
Abdallah Shaban
authored
Documentation-updates (#5104)
* Updated the @latest command for NextJS * streamlined the getting started guide
1 parent d3d2791 commit 069299b

File tree

3 files changed

+3
-56
lines changed

3 files changed

+3
-56
lines changed

src/fragments/lib/auth/js/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import reactnative0 from '/src/fragments/lib/auth/js/getting-started-steps-basic
4242

4343
<Fragments fragments={{ 'react-native': reactnative0 }} />
4444

45-
In your app's entry point (i.e. **App.js**, **index.js**, or **main.js**), import and load the configuration file:
45+
In your app's entry point (i.e. **App.js**, **index.js**, **_app.js**, or **main.js**), import and load the configuration file:
4646

4747
```javascript
4848
import { Amplify, Auth } from 'aws-amplify';

src/fragments/start/getting-started/next/setup.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ To set up the project, you'll first create a new Next.js app with [Create Next A
33
From your projects directory, run the following commands:
44

55
```bash
6-
npx create-next-app next-amplified
6+
npx create-next-app@latest next-amplified
77
cd next-amplified
88
```
99

@@ -84,6 +84,4 @@ The first step to using Amplify in the client is to install the necessary depend
8484
npm install aws-amplify @aws-amplify/ui-react
8585
```
8686

87-
The `aws-amplify` package is the main library for working with Amplify in your apps. The `@aws-amplify/ui-react` package includes React-specific UI components you'll use as you build the app.
88-
89-
Now that your Next.js app is set up and Amplify is initialized, you're ready to add an API in the next step.
87+
The `aws-amplify` package is the main library for working with Amplify in your apps. The `@aws-amplify/ui-react` package includes React-specific UI components that you can use to build your app UI. To learn more about Amplify UI visit our [documentation](https://ui.docs.amplify.aws/).

src/fragments/start/getting-started/vanillajs/nextsteps.mdx

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,54 +8,3 @@
88
- [Push Notification](/lib/push-notifications/getting-started)
99
- [PubSub](/lib/pubsub/getting-started)
1010
- [AR/VR](/lib/xr/getting-started)
11-
12-
## Existing AWS Resources
13-
14-
If you want to use your existing AWS resources with your app you will need to **manually configure** your app with an `awsconfiguration.json` file in your code. For example, if you were using Amazon Cognito Identity, Cognito User Pools, AWS AppSync, or Amazon S3:
15-
16-
```json
17-
{
18-
"CredentialsProvider": {
19-
"CognitoIdentity": {
20-
"Default": {
21-
"PoolId": "XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab",
22-
"Region": "XX-XXXX-X"
23-
}
24-
}
25-
},
26-
"CognitoUserPool": {
27-
"Default": {
28-
"PoolId": "XX-XXXX-X_abcd1234",
29-
"AppClientId": "XXXXXXXX",
30-
"Region": "XX-XXXX-X"
31-
}
32-
},
33-
"AppSync": {
34-
"Default": {
35-
"ApiUrl": "https://XXXXXX.appsync-api.XX-XXXX-X.amazonaws.com/graphql",
36-
"Region": "XX-XXXX-X",
37-
"AuthMode": "AMAZON_COGNITO_USER_POOLS"
38-
}
39-
},
40-
"S3TransferUtility": {
41-
"Default": {
42-
"Bucket": "BUCKET_NAME",
43-
"Region": "XX-XXXX-X"
44-
}
45-
}
46-
}
47-
```
48-
49-
In the configuration above, you would need to set the appropriate values such as `Region`, `Bucket`, etc.
50-
51-
## AWS SDK Interfaces
52-
53-
For working with other AWS services you can use service interface objects directly via the generated SDK clients.
54-
55-
<Callout>
56-
57-
To work with service interface objects, your Amazon Cognito users' [IAM role](https://docs.aws.amazon.com/cognito/latest/developerguide/iam-roles.html) must have the appropriate permissions to call the requested services.
58-
59-
</Callout>
60-
61-
You can call methods on any AWS Service interface object supported by the AWS Android SDK by passing your credentials from the AWSMobileClient to the service call constructor. See [SDK Setup Options](/sdk/configuration/setup-options) for more information.

0 commit comments

Comments
 (0)