31 lines
501 B
TypeScript
31 lines
501 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
async redirects() {
|
|
return [
|
|
// Basic redirect
|
|
{
|
|
source: '/admin',
|
|
destination: '/admin/dashboard',
|
|
permanent: true,
|
|
},
|
|
|
|
|
|
]
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'aihlp.com.cn',
|
|
port: '',
|
|
pathname: '/**',
|
|
search: '',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|