Skip to content

Commit

Permalink
Change real-server urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp committed Feb 5, 2025
1 parent 1f430c4 commit 6b1d74a
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions packages/docsite/src/components/playground.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
use dioxus::prelude::*;

#[cfg(not(debug_assertions))]
const SOCKET_URL: &str = "wss://docsite-playground.fly.dev/ws"; // todo: switch to play.dioxuslabs.com when the subdomain becomes live

#[cfg(debug_assertions)]
const SOCKET_URL: &str = "ws://localhost:3000/ws";

#[cfg(not(debug_assertions))]
const BUILT_URL: &str = "https://docsite-playground.fly.dev/built/";

#[cfg(debug_assertions)]
const BUILT_URL: &str = "http://localhost:3000/built/";

use dioxus_playground::PlaygroundUrls;

#[cfg(not(feature = "real-server"))]
Expand All @@ -23,9 +10,9 @@ const URLS: PlaygroundUrls = PlaygroundUrls {

#[cfg(feature = "real-server")]
const URLS: PlaygroundUrls = PlaygroundUrls {
socket: "ws://play.dioxuslabs.com/ws",
socket: "wss://play.dioxuslabs.com/ws",
built: "https://play.dioxuslabs.com/built/",
location: "http://localhost:8080",
location: "https://dioxuslabs.com",
};

#[component]
Expand Down

0 comments on commit 6b1d74a

Please sign in to comment.