Closed Sharqiewicz closed 2 weeks ago
Name | Link |
---|---|
Latest commit | b838454480470ea0e0c08b8c11189170ba6fa7f6 |
Latest deploy log | https://app.netlify.com/sites/rococo-souffle-a625f5/deploys/667165f13ebfaf0008406a28 |
Deploy Preview | https://deploy-preview-460--rococo-souffle-a625f5.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
@ebma I have implemented dynamic imports with dynamic paths using const pages = import.meta.glob('./pages/**/index.tsx')
; from ViteJS ⚡ . This approach detects and registers all the files that match the specified pattern without fetching them immediately.
✨ Key Improvements:
:network:/spacewalk/transactions
corresponds to /pages/spacewalk/transactions/index.tsx
, which is automatically detected by import.meta.glob
from ViteJS.PATHS enum
from app.tsx, minimizing the risk of misspellings.@ebma changed ✅
What:
The paths in the app are just
strings
that can cause many problems, such as misspelling, pointing to a non-existent page (after renaming).How:
✅ Change the paths to be included in the
PATHS
enum. Enum is used for redirection throughout the application. ✅ Remove unused Stats page ✅ Fixed error appearing in the paths that only has the network name like:portal.pendulumchain.org/amplitude
portal.pendulumchain.org/pendulum
portal.pendulumchain.org/foucoco
- now it's redirecting to the dashboard