You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
639 B
33 lines
639 B
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// output: 'export',
|
|
// distDir: 'dist',
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/queyueapi/:path*',
|
|
destination: `${process.env.NEXT_PUBLIC_HOST}/:path*`,
|
|
},
|
|
{
|
|
source: '/',
|
|
destination: '/music/all',
|
|
},
|
|
];
|
|
},
|
|
// redirects: async () => {
|
|
// return [
|
|
// {
|
|
// source: '/',
|
|
// destination: '/music/all',
|
|
// permanent: true,
|
|
// },
|
|
// ];
|
|
// },
|
|
// eslint: {
|
|
// ignoreDuringBuilds: true,
|
|
// ignoreBuildErrors: true,
|
|
// },
|
|
};
|
|
|
|
export default nextConfig;
|