From 108969e4e0c67855419eb11f691cf866313cd7c1 Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Fri, 6 Sep 2024 16:56:48 -0400 Subject: [PATCH] chore(docs/examples): fix refernces to server.url --- scripts/generate-examples-derivatives/generate-docs.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/generate-examples-derivatives/generate-docs.ts b/scripts/generate-examples-derivatives/generate-docs.ts index a892ee660..03d2b8a69 100644 --- a/scripts/generate-examples-derivatives/generate-docs.ts +++ b/scripts/generate-examples-derivatives/generate-docs.ts @@ -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 {