fix playwrite tests

This commit is contained in:
Evan Almloff committed 2023-07-07 19:03:25 -07:00
1 parent aa26c086de
commit 576bc61855
5 files changed
+8 -6

No files matched your search

@@ -15,6 +15,7 @@ tokio = { workspace = true, features = ["full"], optional = true }
serde = "1.0.159"
execute = "0.2.12"
tower-http = { version = "0.4.1", features = ["auth"] }
simple_logger = "4.2.0"
[features]
default = []
@@ -41,7 +41,6 @@ fn app(cx: Scope<AppProps>) -> Element {
}
#[server(PostServerData)]
#[middleware(tower_http::validate_request::ValidateRequestHeaderLayer::bearer("passwordlol"))]
async fn post_server_data(
#[extract] axum::extract::Host(host): axum::extract::Host,
data: String,
@@ -59,7 +58,6 @@ async fn get_server_data() -> Result<String, ServerFnError> {
fn main() {
launch!(@([127, 0, 0, 1], 8080), app, {
serve_cfg: ServeConfigBuilder::new(app, (AppProps { count: 0 })),
incremental: IncrementalRendererConfig::default().invalidate_after(std::time::Duration::from_secs(120)),
serve_cfg: ServeConfigBuilder::new(app, AppProps { count: 0 }),
});
}