feat: initial commit with Nuxt 3 student management system
- Add Nuxt 3 + Prisma + SQLite full-stack setup - Add student CRUD API with batch import/export - Add stats dashboard with gender/class distribution - Add target community settings feature - Add Docker deployment support (Dockerfile + docker-compose) - Add README with development and deployment instructions
This commit is contained in:
35
nuxt.config.ts
Normal file
35
nuxt.config.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
export default defineNuxtConfig({
|
||||
devtools: { enabled: true },
|
||||
nitro: {
|
||||
preset: "node-server",
|
||||
},
|
||||
|
||||
modules: ["@nuxtjs/tailwindcss"],
|
||||
|
||||
css: ["~/assets/css/main.css"],
|
||||
|
||||
app: {
|
||||
baseURL: "/",
|
||||
cdnURL: "/",
|
||||
server: {
|
||||
port: 3000,
|
||||
host: "0.0.0.0",
|
||||
},
|
||||
head: {
|
||||
title: "学生数据管理系统",
|
||||
meta: [
|
||||
{ charset: "utf-8" },
|
||||
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
||||
{ name: "description", content: "幼儿园学生数据管理系统" },
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
compatibilityDate: "2024-01-01",
|
||||
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
apiBase: process.env.API_BASE || "/api",
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user