nuxt.config.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: '/favicon.ico' },
  19. ],
  20. script: [
  21. {
  22. src: 'https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=5qsxjdotgi',
  23. defer: true
  24. }
  25. ]
  26. },
  27. },
  28. modules: ['@nuxt/ui'],
  29. ui: {
  30. colorMode: false
  31. },
  32. css: [
  33. '~/assets/styles/style.css',
  34. '~/assets/styles/sub.css'
  35. ],
  36. compatibilityDate: '2025-07-15',
  37. devtools: { enabled: false },
  38. devServer: {
  39. host: "0.0.0.0"
  40. },
  41. runtimeConfig: {
  42. public: {
  43. apiBase: process.env.NUXT_PUBLIC_API_BASE || 'http://localhost'
  44. }
  45. }
  46. })