Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant changes to migrate the project to Next.js, improve bundle size management, and enhance code quality. Key updates include configuring Next.js, adding a bundle size analysis workflow, and replacing
react-router-dom
with Next.js routing. Additionally, ESLint and Prettier configurations were updated to align with the new setup.Migration to Next.js:
next.config.mjs
file with configurations for strict mode, SWC minification, customdistDir
, and environment variables (app/next.config.mjs
).react-router-dom
navigation with Next.js routing (useRouter
androuter.push
) in components likePackageDashboard
andApp
(app/src/features/dashboard/components/PackageDashboard.tsx
,app/src/App.tsx
). [1] [2]Bundle size management:
.github/workflows/frontend-bundle-size-check.yml
).app/scripts/check-bundle-size.js
).Code quality improvements:
app/.eslintrc
).package.json
to include Next.js-specific scripts and dependencies, removing unused libraries and adding new ones likecross-env
and@next/eslint-plugin-next
(app/package.json
). [1] [2]Component updates:
use client
directive to several components to enable client-side rendering with Next.js (app/src/app/page.tsx
,app/src/features/detail/components/AbiContent.tsx
). [1] [2]AbiContent
to dynamically importReactJsonView
for server-side rendering compatibility (app/src/features/detail/components/AbiContent.tsx
).Miscellaneous:
.next
directory to.gitignore
to exclude Next.js build artifacts (app/.gitignore
)..env.example
with a new environment variable for the backend API URL (app/.env.example
).