feat: add four new student modules (rotation, skill-video, exam-prep, academic) with backend APIs and frontend pages; add exam-prep question history with DB persistence

This commit is contained in:
freedakgmail
2026-06-04 11:50:25 +08:00
commit 995f4ecfbd
399 changed files with 73529 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// 将 /api/* 代理到 NestJS 后端,避免浏览器跨域并统一前端调用路径。
async rewrites() {
const backend = process.env.BACKEND_URL ?? 'http://localhost:3000';
return [
{
source: '/api/:path*',
destination: `${backend}/api/:path*`,
},
];
},
};
export default nextConfig;