Skip to content

Commit

Permalink
update schema code block to use MDXCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Logan committed Aug 19, 2024
1 parent f329cce commit d2e6765
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/[platform]/reference/amplify_outputs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
import schema from "./amplify-outputs-schema-v1.json"
import { MDXCode } from '@/components/MDXComponents';

export const meta = {
title: 'About amplify_outputs.json',
Expand Down Expand Up @@ -126,6 +127,8 @@ Amplify.configure({

The Amplify outputs file is defined using a JSON schema. You can find this schema in the [`aws-amplify/amplify-backend` repository](https://github.com/aws-amplify/amplify-backend/blob/main/packages/client-config/src/client-config-schema/schema_v1.json).

<pre><code style={{ maxWidth: "100%", overflowX: "scroll" }}>
{JSON.stringify(schema, null, 2)}
</code></pre>
<MDXCode
codeString={JSON.stringify(schema, null, 2)}
title="schema-v1.json"
language="json"
/>

0 comments on commit d2e6765

Please sign in to comment.