23 lines
460 B
JavaScript
23 lines
460 B
JavaScript
module.exports = {
|
|
async redirects() {
|
|
return [{ source: "/", destination: "/admin", permanent: true }];
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
/*
|
|
{
|
|
source: "/api/v1/:path*",
|
|
destination: "http://localhost:3001/api/:path*",
|
|
},
|
|
*/
|
|
{
|
|
source: "/api/v1/:path*",
|
|
destination: "/api/proxy/:path*",
|
|
},
|
|
{
|
|
source: "/graphql",
|
|
destination: "/api/graphql",
|
|
},
|
|
];
|
|
},
|
|
};
|