feat: migration to Next.js & add dark mode (Fixes #3075)#54
Open
MIHIR2006 wants to merge 2 commits intokeploy:mainfrom
Open
feat: migration to Next.js & add dark mode (Fixes #3075)#54MIHIR2006 wants to merge 2 commits intokeploy:mainfrom
MIHIR2006 wants to merge 2 commits intokeploy:mainfrom
Conversation
Signed-off-by: MIHIR2006 <mihirgoswami2006@gmail.com>
c64ce33 to
71b98cf
Compare
Author
|
recheck |
Signed-off-by: MIHIR2006 <mihirgoswami2006@gmail.com>
812e3cd to
5ba37d1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
FIXES: keploy/keploy#3075
Description
This PR addresses Issue #3075 by migrating the legacy static HTML/CSS codebase to a modern Next.js (App Router) architecture. This migration was necessary to implement the requested Dark/Light mode functionality, which requires state management and dynamic class switching.
Key Changes:
next-themesto handle theme switching and persistence (local storage) without hydration mismatches.next.config.jsfor static export (output: 'export') to ensure compatibility with GitHub Pages deployment.Fixes #3075
Type of change
How Has This Been Tested?
I have performed manual verification of the migration and the new features:
darkclass on the<html>element and persists preference after page reload.npm run buildlocally to confirm that the static export generates successfully without errors.npm run lintto ensure code quality standards are met.Test Configuration:
Additional Context
Light Mode:
Dark Mode:

Checklist: