|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/queyueapi/:path*',
|
|
|
|
destination: `${process.env.NEXT_PUBLIC_HOST}/:path*`,
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// source: '/luoo-music/:path*',
|
|
|
|
// destination: 'http://39.103.180.196:9012/luoo-music/:path*',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// source: '/user/artist/:path*',
|
|
|
|
// destination: 'http://39.103.180.196:9012/user/artist/:path*',
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
source: '/',
|
|
|
|
destination: '/music/all',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/artists-settle-in',
|
|
|
|
destination: '/artists-settle-in/home',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
|
|
|
reactStrictMode: false,
|
|
|
|
// redirects: async () => {
|
|
|
|
// return [
|
|
|
|
// {
|
|
|
|
// source: '/',
|
|
|
|
// destination: '/music/all',
|
|
|
|
// permanent: true,
|
|
|
|
// },
|
|
|
|
// ];
|
|
|
|
// },
|
|
|
|
// eslint: {
|
|
|
|
// ignoreDuringBuilds: true,
|
|
|
|
// ignoreBuildErrors: true,
|
|
|
|
// },
|
|
|
|
};
|
|
|
|
|
|
|
|
export default nextConfig;
|