mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 12:13:10 -05:00
45 lines
840 B
JavaScript
45 lines
840 B
JavaScript
const withImages = require("next-images");
|
|
module.exports = withImages({
|
|
async rewrites() {
|
|
return [
|
|
// check if Next.js project routes match before we attempt proxying
|
|
{
|
|
source: "/:path*",
|
|
destination: "/:path*",
|
|
},
|
|
{
|
|
source: "/:path*",
|
|
destination: `https://sendou-ink.herokuapp.com/:path*`,
|
|
},
|
|
];
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/sr",
|
|
destination: "/sr/leaderboards",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
// i18n: {
|
|
// v-- import from lib/locales
|
|
// locales: [
|
|
// "de",
|
|
// "el",
|
|
// "en",
|
|
// "es",
|
|
// "fr",
|
|
// "it",
|
|
// "ja",
|
|
// "ko",
|
|
// "nl",
|
|
// "pt",
|
|
// "ru",
|
|
// "sv",
|
|
// "zh",
|
|
// ],
|
|
// defaultLocale: "en",
|
|
// },
|
|
});
|