Explorar el Código

fix static generation example compiling

Evan Almloff hace 2 años
padre
commit
e883e8d0dd
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      packages/fullstack/examples/static-hydrated/src/main.rs

+ 3 - 0
packages/fullstack/examples/static-hydrated/src/main.rs

@@ -38,6 +38,9 @@ fn main() {
     );
 }
 
+#[cfg(not(any(feature = "web", feature = "ssr")))]
+fn main() {}
+
 #[derive(Clone, Routable, Debug, PartialEq, Serialize, Deserialize)]
 enum Route {
     #[route("/")]