由于上个仓库主线和分支差距过大且主线不再使用所以新建此仓库
This commit is contained in:
30
next.config.js
Normal file
30
next.config.js
Normal file
@@ -0,0 +1,30 @@
|
||||
/** @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;
|
||||
Reference in New Issue
Block a user