diff --git a/.gitignore b/.gitignore
index e18665e2f..a5057b6b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,7 +16,7 @@
/dist*
/website/build
/website/i18n
-/website/static/playground.js
+/website/static/playground
/website/static/lib
/website/.docusaurus
.DS_Store
diff --git a/.vscode/settings.example.json b/.vscode/settings.example.json
index 3c77df0ba..ce9a389c3 100644
--- a/.vscode/settings.example.json
+++ b/.vscode/settings.example.json
@@ -12,5 +12,7 @@
"dist*": true,
"website/.docusaurus": true,
"website/build": true,
+ "website/static/playground": true,
+ "website/static/lib": true,
},
}
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index b4465ec6d..799043d2b 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -137,7 +137,10 @@ const config = {
type: "docsVersionDropdown",
},
{
- to: "pathname:///playground/",
+ href:
+ process.env.NODE_ENV === "production"
+ ? "pathname:///playground/"
+ : "http://localhost:5173/",
label: "Playground",
position: "right",
target: "_self",
diff --git a/website/static/playground/index.html b/website/index.html
similarity index 98%
rename from website/static/playground/index.html
rename to website/index.html
index 5e4965518..9d038506d 100644
--- a/website/static/playground/index.html
+++ b/website/index.html
@@ -168,7 +168,7 @@
crossorigin="anonymous"
referrerpolicy="no-referrer"
>
-
+
-
-
+