Skip to content

Commit dd4bed6

Browse files
committed
Removed a console.log(), udpated wording for default options, and reworded the [id].js instructions
1 parent cf426e3 commit dd4bed6

File tree

1 file changed

+4
-8
lines changed
  • src/fragments/start/getting-started/next

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ amplify push
9595

9696

9797
API key configuration
98-
✔ Enter a description for the API key: · (Just hit enter)
99-
✔ After how many days from now the API key should expire (1-365): · 7 (Just hit enter)
98+
✔ Enter a description for the API key: · (default)
99+
✔ After how many days from now the API key should expire (1-365): · 7 (default)
100100

101101
# You should see that the GraphQL schema compiled successfully.
102102

103103
? Do you want to generate code for your newly created GraphQL API: (Yes)
104104
? Choose the code generation language target: (javascript)
105-
? Enter the file name pattern of graphql queries, mutations and subscriptions (src/graphql/**/*.js) (Just hit enter)
105+
? Enter the file name pattern of graphql queries, mutations and subscriptions (src/graphql/**/*.js) (default)
106106
? Do you want to generate/update all possible GraphQL operations - queries, mutations and subscriptions: (Yes)
107107
? Enter maximum statement depth [increase from default if your schema is deeply nested]: (2)
108108

@@ -360,10 +360,7 @@ Submit that form to create a new post, and you'll build that page next!
360360

361361
Statically generating pages during the build process improves performance. But, dynamically created posts still need to not `404`.
362362

363-
To solve this, create a new folder within **/pages** named "posts". Next, create a new file within this new **/posts** named **[id].js** to create the structure:
364-
**pages/posts/[id].js**.
365-
366-
Paste the following content into the newly made **[id].js** file:
363+
To solve this, create a new folder within **/pages** named "**posts**", then a file within that named **[id].js** to place the following content:
367364

368365
```jsx
369366
import { Amplify, API, withSSRContext } from 'aws-amplify';
@@ -384,7 +381,6 @@ export async function getServerSideProps({req, params}) {
384381
id: params.id
385382
}
386383
});
387-
console.log(data)
388384
return {
389385
props: {
390386
post: data.getPost

0 commit comments

Comments
 (0)