suno-api/next.config.mjs
2025-09-09 11:52:03 +08:00

17 lines
426 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config) => {
config.module.rules.push({
test: /\.(ttf|html)$/i,
type: 'asset/resource'
});
return config;
},
basePath: '/suno-api', // 👈 应用的统一前缀
experimental: {
serverMinification: false, // the server minification unfortunately breaks the selector class names
},
};
export default nextConfig;