diff --git a/create-rust-app/src/util/actix_web_utils.rs b/create-rust-app/src/util/actix_web_utils.rs index 2fcff93b..c72ffa7f 100644 --- a/create-rust-app/src/util/actix_web_utils.rs +++ b/create-rust-app/src/util/actix_web_utils.rs @@ -50,9 +50,6 @@ pub async fn render_views(req: HttpRequest) -> HttpResponse { let path = req.path(); #[cfg(debug_assertions)] - if path.eq("/__vite_ping") { - println!("The vite dev server seems to be down..."); - } { // Catch viteJS ping requests and try to handle them gracefully // Request the browser to refresh the page (maybe the server is up but the browser just can't reconnect) @@ -84,6 +81,9 @@ pub async fn render_views(req: HttpRequest) -> HttpResponse { *count = 0; } } + if path.eq("/__vite_ping") { + println!("The vite dev server seems to be down..."); + } let mut template_path = to_template_name(req.path()); // try and render from your ./backend/views diff --git a/create-rust-app_cli/qsync/src/hook.rs b/create-rust-app_cli/qsync/src/hook.rs index 7a38ebf9..1d2d0504 100644 --- a/create-rust-app_cli/qsync/src/hook.rs +++ b/create-rust-app_cli/qsync/src/hook.rs @@ -226,7 +226,6 @@ impl Hook { .endpoint_url .trim_start_matches("/api/") .split('/') - .into_iter() .map(|t| { // in actix-web, paths which have {} denote a path param if t.starts_with('{') && t.ends_with('}') { diff --git a/create-rust-app_cli/template/frontend/package-lock.json b/create-rust-app_cli/template/frontend/package-lock.json index 32d424e7..3c2a8698 100644 --- a/create-rust-app_cli/template/frontend/package-lock.json +++ b/create-rust-app_cli/template/frontend/package-lock.json @@ -483,9 +483,9 @@ "integrity": "sha512-t54ONhl/h75X94SWsHGQ4G/ZrCEguKSRQr7DrjTciJXW0YU1QhlwYeycvK5JgkzlxmvrK7wq1NB/PLtHxoiDcA==" }, "@types/node": { - "version": "18.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", - "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", + "version": "18.15.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.3.tgz", + "integrity": "sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==", "dev": true }, "@types/prop-types": { diff --git a/create-rust-app_cli/template/frontend/package.json b/create-rust-app_cli/template/frontend/package.json index cbdb871a..a2a284f0 100644 --- a/create-rust-app_cli/template/frontend/package.json +++ b/create-rust-app_cli/template/frontend/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@playwright/test": "^1.30.0", - "@types/node": "^18.13.0", + "@types/node": "^18.15.3", "@types/react": "^18.0.27", "@types/react-dom": "^18.0.10", "@vitejs/plugin-react": "^3.0.1",