Skip to content

Commit 28af4c7

Browse files
aeneasrvinckr
andauthored
fix: hydra quickstart (#2071)
* fix: hydra quickstart * fix: missing import --------- Co-authored-by: vinckr <[email protected]>
1 parent 99f7dd2 commit 28af4c7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/hydra/self-hosted/quickstart.mdx

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ You do not want to self-host? Try
1313

1414
```mdx-code-block
1515
import CodeFromRemote from "@theme/CodeFromRemote"
16+
import { useLatestRelease } from '@site/src/hooks'
1617
```
1718

1819
![OAuth2 Flow with Open Source OAuth2 Server Ory Hydra](_static/oauth2-flow.gif)
@@ -25,9 +26,14 @@ import CodeFromRemote from "@theme/CodeFromRemote"
2526

2627
To get started, clone the Ory Hydra locally:
2728

28-
```
29+
```mdx-code-block
30+
import CodeBlock from '@theme/CodeBlock'
31+
32+
<CodeBlock className="language-shell">{`
2933
git clone https://github.com/ory/hydra.git
3034
cd hydra
35+
git checkout ${useLatestRelease('hydra')}`}
36+
</CodeBlock>
3137
```
3238

3339
Run the following command(s) to start the OAuth2 server:

0 commit comments

Comments
 (0)