Skip to content

[WIP] add middleware to reroute from admin pages #2025

[WIP] add middleware to reroute from admin pages

[WIP] add middleware to reroute from admin pages #2025

Triggered via pull request February 12, 2024 04:37
Status Failure
Total duration 2m 10s
Artifacts

ci-build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 4 warnings
build
Process completed with exit code 1.
check: frontend/src/pages/_middleware.ts#L5
React Hook "useHasAdminPermission" is called in function "middleware" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter
check
Process completed with exit code 1.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v2, actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v2, actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/