Matchu
8cd45d7082
Just sorta idly poking at what it would take to make our Next setup a bit more normal. To start, I'm putting things in more of the normal place, and eyeing what it would take to switch to Next's built-in routing! So now `App.js` is pretty much entirely a routing file, potentially to be deleted once we move 🤔
32 lines
721 B
JavaScript
32 lines
721 B
JavaScript
module.exports = {
|
|
reactStrictMode: true,
|
|
env: {
|
|
PUBLIC_URL: "",
|
|
},
|
|
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",
|
|
},
|
|
];
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/user/:userId/closet",
|
|
destination: "/user/:userId/lists",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/user/:userId/items",
|
|
destination: "/user/:userId/lists",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|