Update configuration-api.md (#825)
Update configuration-api.md (#825)

Fixing two issues:
- `path is not defined` error, because of a missing require.
- The comment inclines its a JSON file, but the code formatting was JS.
cypress-io/cypress-documentation,cypress-io/cypress-documentation