DEV Community

Discussion on: Mapping request paths using Next.js

Collapse
 
derick1530 profile image
Derick Zihalirwa

What about localhost?? I'm trying to add this code:

{
        has: [
            {
//This doesn't work even if i'm on localhost:3002.
              type: "host",
              value: "localhost:3002",
            },
          ],
          source: "/",
          destination: `${URL_TEST}/blog`,
        },
Enter fullscreen mode Exit fullscreen mode

Any help to this will be appreciated. (Maybe need to pass some regex but i'm not good at it)