mirror of https://github.com/sylv/micro.git
20 lines
467 B
JavaScript
20 lines
467 B
JavaScript
const withTM = require("next-transpile-modules")(["@micro/common"]);
|
|
module.exports = withTM({
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/(f|file)/:fileId.:extension",
|
|
destination: "http://localhost:8080/file/:fileId.:extension*",
|
|
},
|
|
{
|
|
source: "/f/:fileId",
|
|
destination: "/file/:fileId",
|
|
},
|
|
{
|
|
source: "/api/:path*",
|
|
destination: "http://localhost:8080/:path*",
|
|
},
|
|
];
|
|
},
|
|
});
|