支持自部署需求管理、交付流程与飞书集成

This commit is contained in:
xyt committed 2026-11-25 12:40:33 +08:00
1 parent 4556a5b483
commit e22b66d9dd
148 files changed
+8300 -6393

No files matched your search

+17 -6
View File
@@ -1,7 +1,18 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
import type { NextConfig } from 'next';
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || '';
if (basePath && !/^(?:\/[A-Za-z0-9][A-Za-z0-9_-]*)+$/.test(basePath)) throw new Error('NEXT_PUBLIC_BASE_PATH 必须为空或类似 /demands 的路径,不含末尾斜线。');
const config: NextConfig = {
basePath,
output: 'standalone',
poweredByHeader: false,
outputFileTracingIncludes: { '/api/documents/*': ['./content/docs/*.md', './content/word/*.docx'] },
async headers() {
return [{source:'/:path*',headers:[
{key:'X-Content-Type-Options',value:'nosniff'},
{key:'Referrer-Policy',value:'same-origin'},
{key:'X-Frame-Options',value:'DENY'},
{key:'Permissions-Policy',value:'camera=(), microphone=(), geolocation=()'},
]}];
},
};
export default nextConfig;
export default config;