nuxt.config.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // https://nuxt.com/docs/api/configuration/nuxt-config
  2. export default defineNuxtConfig({
  3. ssr: false, // SPA 모드 활성화
  4. nitro: {
  5. prerender: {
  6. routes: ['/'], // 오직 루트 페이지만 prerender
  7. crawlLinks: false // 자동 크롤링 비활성화
  8. }
  9. },
  10. app: {
  11. head: {
  12. titleTemplate: '',
  13. title: '파이럿존',
  14. htmlAttrs: {
  15. lang: 'ko'
  16. },
  17. link: [
  18. { rel: 'icon', type: 'image/x-icon', href: '' },
  19. ],
  20. script: [
  21. {
  22. src: '//wcs.pstatic.net/wcslog.js',
  23. type: 'text/javascript'
  24. },
  25. {
  26. type: 'text/javascript',
  27. innerHTML: ``
  28. }
  29. ]
  30. },
  31. },
  32. modules: ['@nuxt/ui'],
  33. ui: {
  34. colorMode: false
  35. },
  36. css: [
  37. '~/assets/scss/style.scss',
  38. '~/assets/scss/admin.scss',
  39. ],
  40. vite: {
  41. css: {
  42. preprocessorOptions: {
  43. scss: {
  44. additionalData: ''
  45. }
  46. }
  47. },
  48. server: {
  49. watch: {
  50. usePolling: true, // Windows 파일 감시 안정화
  51. }
  52. },
  53. optimizeDeps: {
  54. exclude: ['sass']
  55. }
  56. },
  57. compatibilityDate: '2025-07-15',
  58. devtools: { enabled: false },
  59. devServer: {
  60. host: "0.0.0.0"
  61. },
  62. runtimeConfig: {
  63. public: {
  64. apiBase: process.env.NUXT_PUBLIC_API_BASE,
  65. imageBase: process.env.NUXT_PUBLIC_IMAGE_BASE,
  66. mediaBase: process.env.NUXT_PUBLIC_MEDIA_BASE,
  67. googleMapKey: process.env.NUXT_PUBLIC_GOOGLE_MAP_KEY,
  68. }
  69. }
  70. })