File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/pages/gen1/[platform]/build-a-backend/troubleshooting/apikey-not-found Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ export function getStaticProps(context) {
29
29
If you're encountering an "API Key Not Found" issue in your Amplify project, follow the steps below to troubleshoot and resolve the problem:
30
30
31
31
## Step 1: Modify ` parameters.json ` to Remove API Key
32
- 1 . Navigate to the api/[ name] /parameters.json file in your project.
32
+ 1 . Navigate to the ` api/[name]/parameters.json ` file in your project.
33
33
2 . Add the following line to the file:
34
34
35
- ``` ts
35
+ ``` ts title="parameters.json"
36
36
" CreateAPIKey" : 0
37
37
```
38
38
Ensure that a comma is placed after the previous line if this is added at the end of the JSON object.
@@ -44,7 +44,7 @@ If you're encountering an "API Key Not Found" issue in your Amplify project, fol
44
44
3 . Modify the arrays by removing the ` GraphQLAPIKeyOutput ` entry. For example:
45
45
* Change this:
46
46
47
- ``` json
47
+ ``` json title="backend-config.json"
48
48
"attributes" : [
49
49
" GraphQLAPIIdOutput" ,
50
50
" GraphQLAPIEndpointOutput" ,
@@ -54,7 +54,7 @@ If you're encountering an "API Key Not Found" issue in your Amplify project, fol
54
54
55
55
* To this:
56
56
57
- ``` ts
57
+ ``` json title="backend-config.json"
58
58
"attributes" : [
59
59
" GraphQLAPIIdOutput" ,
60
60
" GraphQLAPIEndpointOutput"
You can’t perform that action at this time.
0 commit comments