1
0

nuxt.config.ts 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /* Import package info. */
  2. import pkg from './package.json'
  3. export default defineNuxtConfig({
  4. /* Application Settings */
  5. app: {
  6. head: {
  7. charset: 'utf-8',
  8. viewport: 'initial-scale=1',
  9. title: 'APECS — Casually Building Crypto',
  10. meta: [
  11. { name: 'description', content: 'A permissionless, multi-chain platform for P2P electronic cash Builders to do wtf they need to do.' }
  12. ],
  13. }
  14. },
  15. // router: {
  16. // extendRoutes(routes, resolve) {
  17. // for (const route of routes) {
  18. // route.path = route.path.toLowerCase()
  19. // // if (route.path.includes('/about')) {
  20. // // route.path = '/my-about-us'
  21. // // }
  22. // }
  23. // return routes
  24. // }
  25. // },
  26. /* Style Sheets */
  27. css: [
  28. '@fortawesome/fontawesome-svg-core/styles.css'
  29. ],
  30. /* Modules */
  31. modules: [
  32. '@nuxtjs/tailwindcss',
  33. '@pinia/nuxt',
  34. '@nuxtjs/plausible',
  35. ],
  36. /* Plausible (self-hosted) */
  37. plausible: {
  38. apiHost: 'https://plausible.hos.im',
  39. autoOutboundTracking: true,
  40. },
  41. /* Runtime Configuration */
  42. runtimeConfig: {
  43. // NOTE: The private keys which are only available within server-side.
  44. secrets: {},
  45. // NOTE: Keys within public, will be also exposed to the client-side
  46. public: {
  47. clientVersion: pkg.version,
  48. },
  49. },
  50. /* Routing Rules */
  51. routeRules: {
  52. // Static page generated on-demand, revalidates in background
  53. // '/blog/**': { swr: true },
  54. // Static page generated on-demand once
  55. '/guides/**': { static: true },
  56. // Set custom headers matching paths
  57. // '/_nuxt/**': { headers: { 'cache-control': 's-maxage=0' } },
  58. // Render these routes with SPA
  59. '/admin/**': { ssr: false },
  60. // '/bch/**': { ssr: false },
  61. // '/nexa/**': { ssr: true },
  62. // Add cors headers
  63. // '/api/v1/**': { cors: true },
  64. // Add redirect headers
  65. // '/old-page': { redirect: '/new-page' },
  66. // '/old-page2': { redirect: { to: '/new-page', statusCode: 302 } }
  67. },
  68. /* Vite Configuration */
  69. vite: {
  70. server: {
  71. fs: {
  72. strict: false, // NOTE: This allows for `npm/yarn link` library support.
  73. },
  74. },
  75. },
  76. /* Set compatibility date. */
  77. compatibilityDate: '2024-08-30',
  78. })