nuxt.config.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* Import modules. */
  2. import { nodePolyfills } from 'vite-plugin-node-polyfills'
  3. // https://nuxt.com/docs/api/configuration/nuxt-config
  4. export default defineNuxtConfig({
  5. /* Application Settings */
  6. app: {
  7. /* Application Header */
  8. head: {
  9. charset: 'utf-8',
  10. viewport: 'width=device-width, initial-scale=1',
  11. title: `Hush Your Money — Spend Privately. Fearlessly!`,
  12. meta: [
  13. { name: 'description', content: `Spend Privately. Fearlessly!` },
  14. ],
  15. link: [
  16. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  17. ],
  18. script: [
  19. { src: '/js/polyfills.js' },
  20. ],
  21. },
  22. },
  23. /* Progressive Web Application Settings */
  24. pwa: {
  25. manifest: {
  26. name: 'Hush Your Money — Spend Privately. Fearlessly!',
  27. short_name: 'Hush Your Money',
  28. description: `Spend Privately. Fearlessly!`,
  29. lang: 'en',
  30. theme_color: '#518c96',
  31. background_color: '#518c96',
  32. // useWebmanifestExtension: false,
  33. },
  34. meta: {
  35. name: 'Hush Your Money — Spend Privately. Fearlessly!',
  36. description: `Spend Privately. Fearlessly!`,
  37. author: `Nexa contributors`,
  38. },
  39. // icon: false, // disables the icon module
  40. workbox: {
  41. // workboxURL: 'TBD',
  42. // enabled: true, // FOR DEV PURPOSES ONLY
  43. },
  44. },
  45. /* Application Modules */
  46. modules: [
  47. /* Tailwind CSS */
  48. '@nuxtjs/tailwindcss',
  49. /* Pinia */
  50. '@pinia/nuxt',
  51. /* Plausible */
  52. '@nuxtjs/plausible',
  53. /* Internationalization for Nuxt */
  54. '@nuxtjs/i18n',
  55. /* Progressive Web Application */
  56. '@kevinmarrec/nuxt-pwa',
  57. ],
  58. /* Plausible */
  59. plausible: {
  60. apiHost: 'https://plausible.hos.im',
  61. },
  62. /* Route Rules */
  63. routeRules: {
  64. /* Add CORS headers to root. */
  65. // NOTE: We need this to make <token>.json available to web apps.
  66. '/**': { cors: true },
  67. },
  68. runtimeConfig: {
  69. PSF_JWT_AUTH_TOKEN: process.env.PSF_JWT_AUTH_TOKEN,
  70. // public: {
  71. // PSF_JWT_AUTH_TOKEN: process.env.PSF_JWT_AUTH_TOKEN,
  72. // },
  73. },
  74. // FIXME Polyfills to support `@psf/bch-js` node dependencies.
  75. vite: {
  76. plugins: [ nodePolyfills() ],
  77. },
  78. /* Set compatibility date. */
  79. compatibilityDate: '2024-07-04',
  80. })