impress-2020/next.config.js

32 lines
696 B
JavaScript
Raw Normal View History

module.exports = {
env: {
PUBLIC_URL: "",
},
2021-11-01 22:42:23 -07:00
async rewrites() {
return [
{
source: "/outfits/:id/:size(150|300|600).png",
destination: "/api/outfitImage?size=:size&id=:id",
},
{
source: "/outfits/:id/v/:updatedAt/:size(150|300|600).png",
destination: "/api/outfitImage?size=:size&id=:id&updatedAt=:updatedAt",
},
];
},
2021-11-01 22:33:23 -07:00
async redirects() {
return [
{
source: "/user/:userId/closet",
destination: "/user/:userId/lists",
permanent: true,
},
{
source: "/user/:userId/items",
destination: "/user/:userId/lists",
permanent: true,
},
];
},
};