2 Commits

Author SHA1 Message Date
GW_MC
1eeca606ec feat: Remove debug handler attributes from fallback and file handler functions
All checks were successful
Test / get-ci-image (pull_request) Successful in 7s
Test / lint-frontend (pull_request) Successful in 26s
Test / frontend-build (pull_request) Successful in 23s
Verify / get-ci-image (pull_request) Successful in 4s
Test / test-frontend (pull_request) Successful in 34s
Test / lint-crates (pull_request) Successful in 5m48s
Test / test-crates (pull_request) Successful in 5m59s
Verify / verify-generated-db-entities (pull_request) Successful in 6m28s
2026-04-18 08:37:08 +00:00
GW_MC
6ce8850ddb feat: Update frontend build cache path and add dummy artifact to prevent build failure 2026-04-18 08:22:05 +00:00
2 changed files with 13 additions and 5 deletions

View File

@@ -45,11 +45,16 @@ jobs:
- name: Restore frontend build cache
uses: actions/cache@v4
with:
path: apps/nxmesh-frontend/build
path: apps/nxmesh-frontend/dist
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
restore-keys: |
frontend-build-${{ runner.os }}-
- name: Add dummy fonrtend build artifact to prevent build failure
run: |
mkdir -p apps/nxmesh-frontend/dist
touch apps/nxmesh-frontend/dist/dummy
- name: Run tests
run: cargo test --all-features
@@ -74,11 +79,16 @@ jobs:
- name: Restore frontend build cache
uses: actions/cache@v4
with:
path: apps/nxmesh-frontend/build
path: apps/nxmesh-frontend/dist
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
restore-keys: |
frontend-build-${{ runner.os }}-
- name: Add dummy fonrtend build artifact to prevent build failure
run: |
mkdir -p apps/nxmesh-frontend/dist
touch apps/nxmesh-frontend/dist/dummy
- name: Run clippy
run: cargo clippy --all-features
@@ -147,7 +157,7 @@ jobs:
- name: Cache frontend build
uses: actions/cache@v4
with:
path: apps/nxmesh-frontend/build
path: apps/nxmesh-frontend/dist
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
restore-keys: |
frontend-build-${{ runner.os }}-

View File

@@ -27,7 +27,6 @@ pub async fn get_router() -> Router {
.fallback(get_fallback_handler().await)
}
#[cfg_attr(debug_assertions, axum::debug_handler)]
pub async fn get_fallback_handler() -> Result<axum::response::Html<Vec<u8>>, axum::http::StatusCode>
{
let index_html = get_index_html();
@@ -41,7 +40,6 @@ fn get_index_html() -> Option<Vec<u8>> {
FrontendAssets::get(INDEX_HTML).map(|asset| asset.data.as_ref().to_owned())
}
#[cfg_attr(debug_assertions, axum::debug_handler)]
async fn get_file_handler(
axum::extract::Path(path): axum::extract::Path<String>,
) -> Result<axum::response::Response, axum::http::StatusCode> {