2023-02-13 12:41:30 +00:00
|
|
|
module.exports = {
|
2023-03-15 12:17:43 +00:00
|
|
|
experimental: { esmExternals: "loose" },
|
2023-02-13 12:41:30 +00:00
|
|
|
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",
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
};
|