Commit 7bfd26ff by Moorthy G

feat: setup proxy for api

parent 8f9dcdc3
NEXT_PUBLIC_API_URL=https://smarten-spaces-testing.eu-staging.kacdn.net
NEXT_PUBLIC_API_URL=http://localhost/api
......@@ -30,6 +30,10 @@ module.exports = {
{
source: '/',
destination: '/home'
},
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL}/:path*`
}
];
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment