nuxt.config.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. '~/assets/scss/media.scss',
  40. ],
  41. vite: {
  42. css: {
  43. preprocessorOptions: {
  44. scss: {
  45. additionalData: ''
  46. }
  47. }
  48. },
  49. server: {
  50. watch: {
  51. usePolling: true, // Windows 파일 감시 안정화
  52. }
  53. },
  54. optimizeDeps: {
  55. exclude: ['sass']
  56. }
  57. },
  58. compatibilityDate: '2025-07-15',
  59. devtools: { enabled: false },
  60. devServer: {
  61. host: "0.0.0.0"
  62. },
  63. runtimeConfig: {
  64. public: {
  65. apiBase: process.env.NUXT_PUBLIC_API_BASE,
  66. imageBase: process.env.NUXT_PUBLIC_IMAGE_BASE,
  67. mediaBase: process.env.NUXT_PUBLIC_MEDIA_BASE,
  68. googleMapKey: process.env.NUXT_PUBLIC_GOOGLE_MAP_KEY,
  69. }
  70. }
  71. })