63 lines
1.2 KiB
TypeScript
63 lines
1.2 KiB
TypeScript
import { fileURLToPath } from "node:url";
|
|
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: "2025-07-15",
|
|
devtools: { enabled: false },
|
|
ssr: false,
|
|
|
|
devServer: {
|
|
host: "0.0.0.0",
|
|
port: 3002,
|
|
},
|
|
|
|
modules: [
|
|
"@nuxt/ui",
|
|
"@pinia/nuxt",
|
|
"@nuxt/icon",
|
|
],
|
|
|
|
css: ["~/assets/css/main.css"],
|
|
|
|
imports: {
|
|
dirs: ["stores", "composables", "apis"],
|
|
},
|
|
|
|
colorMode: {
|
|
preference: "light",
|
|
fallback: "light",
|
|
classSuffix: "",
|
|
storageKey: "theme-mode",
|
|
},
|
|
|
|
icon: {
|
|
clientBundle: {
|
|
scan: true,
|
|
},
|
|
},
|
|
|
|
components: [
|
|
{
|
|
path: "~/components/auto-import",
|
|
extensions: ["vue"],
|
|
pathPrefix: false,
|
|
},
|
|
{
|
|
path: "~/components",
|
|
extensions: ["vue"],
|
|
},
|
|
],
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
NUXT_PUBLIC_SYSTEM: process.env.NUXT_PUBLIC_SYSTEM || "school",
|
|
NUXT_PUBLIC_BASE_URL: process.env.NUXT_PUBLIC_BASE_URL || "http://localhost:3000/",
|
|
NUXT_PUBLIC_API_NAME: process.env.NUXT_PUBLIC_API_NAME || "api/v1",
|
|
},
|
|
},
|
|
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./app", import.meta.url)),
|
|
"~": fileURLToPath(new URL("./app", import.meta.url)),
|
|
},
|
|
});
|