Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions create-rust-app/src/util/actix_web_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion create-rust-app_cli/qsync/src/hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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('}') {
Expand Down
6 changes: 3 additions & 3 deletions create-rust-app_cli/template/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion create-rust-app_cli/template/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down