/** @type {import('next').NextConfig} */ const nextConfig = { // 配置静态文件目录 async rewrites() { return [ { source: '/ubuntu/:path*', destination: '/api/files/ubuntu/:path*', }, { source: '/centos/:path*', destination: '/api/files/centos/:path*', }, { source: '/debian/:path*', destination: '/api/files/debian/:path*', }, { source: '/archlinux/:path*', destination: '/api/files/archlinux/:path*', }, { source: '/fedora/:path*', destination: '/api/files/fedora/:path*', }, ]; }, }; module.exports = nextConfig;