2021-03-17 02:33:12 -04:00
|
|
|
// @ts-check
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-undef
|
2021-04-06 00:13:02 -04:00
|
|
|
module.exports = {
|
2021-03-17 02:33:12 -04:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: "/api",
|
2021-04-02 16:14:50 -04:00
|
|
|
destination: "http://localhost:5000",
|
2021-03-17 02:33:12 -04:00
|
|
|
},
|
|
|
|
{
|
2021-04-02 16:14:50 -04:00
|
|
|
source: "/api/:path*",
|
|
|
|
destination: "http://localhost:5000/:path*",
|
2021-03-17 02:33:12 -04:00
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
|
|
|
};
|