nuxt.config.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { defineNuxtConfig } from 'nuxt'
  2. import fs from 'fs';
  3. // https://v3.nuxtjs.org/api/configuration/nuxt.config
  4. export default defineNuxtConfig({
  5. hooks: {
  6. 'builder:watch': console.log
  7. },
  8. app: {
  9. head: {
  10. title: 'Opentalent',
  11. meta: [
  12. { charset: 'utf-8' },
  13. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  14. { hid: 'description', name: 'description', content: '' },
  15. { name: 'msapplication-TileColor', content: '#324250' },
  16. { name: 'msapplication-TileImage', content: '/favicon/mstile-144x144.png' }
  17. ],
  18. link: [
  19. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  20. { rel: 'apple-touch-icon-precomposed', sizes: '57x57', href: '/favicon/apple-touch-icon-57x57.png' },
  21. { rel: 'apple-touch-icon-precomposed', sizes: '114x114', href: '/favicon/apple-touch-icon-114x114.png' },
  22. { rel: 'apple-touch-icon-precomposed', sizes: '72x72', href: '/favicon/apple-touch-icon-72x72.png' },
  23. { rel: 'apple-touch-icon-precomposed', sizes: '144x144', href: '/favicon/apple-touch-icon-144x144.png' },
  24. { rel: 'apple-touch-icon-precomposed', sizes: '120x120', href: '/favicon/apple-touch-icon-120x120.png' },
  25. { rel: 'apple-touch-icon-precomposed', sizes: '152x152', href: '/favicon/apple-touch-icon-152x152.png' },
  26. { rel: 'icon', sizes: '32x32', type: 'image/x-icon', href: '/favicon/favicon-32x32.png' },
  27. { rel: 'icon', sizes: '16x16', type: 'image/x-icon', href: '/favicon/favicon-16x16.png' },
  28. ]
  29. }
  30. },
  31. modules: [
  32. 'nuxt-lodash',
  33. [
  34. '@pinia/nuxt',
  35. {
  36. autoImports: [
  37. // automatically imports `usePinia()`
  38. 'defineStore',
  39. // automatically imports `usePinia()` as `usePiniaStore()`
  40. ['defineStore', 'definePiniaStore'],
  41. ],
  42. },
  43. ],
  44. '@pinia-orm/nuxt',
  45. ],
  46. typescript: {
  47. strict: true
  48. },
  49. vite: {
  50. server: {
  51. https: {
  52. key: fs.readFileSync('local.app-v3.opentalent.fr.key'),
  53. cert: fs.readFileSync('local.app-v3.opentalent.fr.crt'),
  54. },
  55. port: 443,
  56. hmr: {
  57. protocol: 'wss'
  58. }
  59. }
  60. }
  61. })