추가
This commit is contained in:
61
nuxt.config.ts
Normal file
61
nuxt.config.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2024-11-01',
|
||||
devtools: { enabled: true },
|
||||
|
||||
// 서버 설정
|
||||
nitro: {
|
||||
experimental: {
|
||||
websocket: true
|
||||
}
|
||||
},
|
||||
|
||||
// 라우트 설정
|
||||
dir: {
|
||||
pages: 'frontend',
|
||||
},
|
||||
|
||||
// 서버 API 디렉토리
|
||||
serverDir: 'backend',
|
||||
|
||||
// 컴포넌트 자동 import
|
||||
components: [
|
||||
{ path: '~/frontend/components', pathPrefix: false }
|
||||
],
|
||||
|
||||
// composables 경로
|
||||
imports: {
|
||||
dirs: ['frontend/composables']
|
||||
},
|
||||
|
||||
// 앱 설정
|
||||
app: {
|
||||
head: {
|
||||
title: '주간업무보고',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
|
||||
],
|
||||
link: [
|
||||
{ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css' },
|
||||
{ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css' }
|
||||
],
|
||||
script: [
|
||||
{ src: 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js', defer: true }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
// 런타임 설정
|
||||
runtimeConfig: {
|
||||
dbHost: process.env.DB_HOST || 'localhost',
|
||||
dbPort: process.env.DB_PORT || '5432',
|
||||
dbName: process.env.DB_NAME || 'weeklyreport',
|
||||
dbUser: process.env.DB_USER || 'postgres',
|
||||
dbPassword: process.env.DB_PASSWORD || '',
|
||||
sessionSecret: process.env.SESSION_SECRET || 'dev-secret-key',
|
||||
public: {
|
||||
appName: '주간업무보고'
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user