Skip to content

Commit

Permalink
chore(docs/examples): fix refernces to server.url
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Sep 6, 2024
1 parent f98dbae commit 108969e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/generate-examples-derivatives/generate-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ import $1 from './$2/__.js'`,
// These are used in the examples to run servers for the examples to interact with.
// This is not something that the website examples support showing.
// It would required bringing in analysis of the server code for twoslash.
// URL references are replaced with localhost URL literals.
.replaceAll(`server.url`, `"http://localhost:3000/graphql"`)
.replaceAll(/.*server.*\n(?:\s*\n)?/g, ``)

return {
Expand Down

0 comments on commit 108969e

Please sign in to comment.