Skip to content

Conversation

@just-kato
Copy link

Pull Request: Fix Routing and Suppress Source Map Warning

Description

This pull request addresses the following issues:

  1. Fixes the issue with routing where URLs were appearing as http://localhost:3000/auth/signin#/auth/signin.
  2. Suppresses the source map warning related to stylis-plugin-rtl.

Changes Made

  1. Routing Fix in AuthLayout Component:

    • Simplified the getRoutes function to correctly handle routes for the /auth layout.
    • Updated the redirect path to /auth/signin.
  2. Webpack Configuration Update:

    • Added configuration to ignore missing source maps for stylis-plugin-rtl.

Files Changed

  • src/layouts/Auth.js: Updated routing logic.
  • webpack.config.js: Added rule to ignore source maps for stylis-plugin-rtl.

Verification Steps

  1. Cleaned the build directory and reinstalled dependencies.
    rm -rf build node_modules
    npm install
    npm run build
    npm start
  2. Verified that navigating to http://localhost:3000/auth/signin and other routes work correctly without duplication.
  3. Confirmed that the source map warning is suppressed.

Screenshots

Before:
Before Fix

After:
After Fix

Testing

  • Manually tested the application to ensure routing works correctly.
  • Verified that the source map warning no longer appears.

Related Issues

  • Fixes #

Additional Notes

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant