NanoBananaShow/next.config.mjs
2024-07-08 18:37:12 +08:00

19 lines
681 B
JavaScript

import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{source: '/en', destination: '/', permanent: true},
{source: '/stickers/1', destination: '/stickers', permanent: true},
{source: '/stickers/0', destination: '/stickers', permanent: true},
{source: '/:locale/stickers/1', destination: '/:locale/stickers', permanent: true},
{source: '/:locale/stickers/0', destination: '/:locale/stickers', permanent: true},
];
}
};
export default withNextIntl(nextConfig);