nuxt.config.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import tailwindTypography from '@tailwindcss/typography'
  2. // https://nuxt.com/docs/api/configuration/nuxt-config
  3. export default defineNuxtConfig({
  4. modules: [
  5. 'nuxt-og-image',
  6. '@nuxtjs/color-mode',
  7. '@nuxt/content',
  8. '@nuxtjs/plausible',
  9. '@nuxtjs/tailwindcss',
  10. '@vueuse/nuxt'
  11. ],
  12. content: {
  13. documentDriven: true,
  14. experimental: {
  15. search: {
  16. indexed: true
  17. }
  18. },
  19. markdown: {
  20. tags: {
  21. h2: 'AppHeading2',
  22. h3: 'AppHeading3',
  23. h4: 'AppHeading4'
  24. }
  25. },
  26. highlight: {
  27. theme: {
  28. // Default theme (same as single string)
  29. default: 'github-dark',
  30. // Theme used if `html.dark`
  31. dark: 'github-dark',
  32. // Theme used if `html.sepia`
  33. sepia: 'monokai'
  34. },
  35. preload: [
  36. 'dockerfile',
  37. 'ini',
  38. 'php'
  39. ]
  40. },
  41. },
  42. colorMode: {
  43. classSuffix: ''
  44. },
  45. nitro: {
  46. prerender: {
  47. routes: [
  48. '/sitemap.xml',
  49. '/api/search.json'
  50. ]
  51. }
  52. },
  53. ogImage: {
  54. componentDirs: ['~/components/Global/OgImage'],
  55. },
  56. plausible: {
  57. apiHost: 'https://a.521dimensions.com'
  58. },
  59. runtimeConfig: {
  60. public: {
  61. basePath: process.env.NUXT_APP_BASE_URL || '/',
  62. domain: process.env.TOP_LEVEL_DOMAIN
  63. }
  64. },
  65. site: {
  66. url: process.env.BASE_PATH,
  67. },
  68. tailwindcss: {
  69. config: {
  70. plugins: [tailwindTypography]
  71. },
  72. cssPath: '~/assets/css/tailwind.css',
  73. }
  74. })