Skip to content
Discussion options

You must be logged in to vote

Setting routes in now.json solved my problem and seems to work perfectly.

{
  "version": 2,
  "routes": [
    { "src": "/login", "dest": "/containers/auth/login", "methods": ["GET"] },
    {
      "src": "/sign-up",
      "dest": "/containers/auth/sign-up",
      "methods": ["GET"]
    },
    { "src": "/page", "dest": "/page" },

    { "src": "/home", "dest": "/index" },
    { "src": "/profile", "dest": "/index", "methods": ["GET"] },
    { "src": "/connect/oauth", "dest": "/index" }
  ]
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by borisdedejski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant