nuxt.config.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. import colors from 'vuetify/es5/util/colors'
  2. export default {
  3. publicRuntimeConfig: {
  4. http:{
  5. browserBaseURL : process.env.NODE_ENV !== 'production' ? 'https://local.new.api.opentalent.fr' : 'https://local.new.api.opentalent.fr'
  6. },
  7. baseURL_Legacy : process.env.NODE_ENV !== 'production' ? 'https://local.api.opentalent.fr' : 'https://local.api.opentalent.fr'
  8. },
  9. privateRuntimeConfig: {
  10. http:{
  11. baseURL : process.env.NODE_ENV !== 'production' ? 'http://nginx_new' : 'https://local.api.opentalent.fr'
  12. },
  13. baseURL_Legacy : process.env.NODE_ENV !== 'production' ? 'http://nginx' : 'https://local.api.opentalent.fr'
  14. },
  15. // Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
  16. ssr: true,
  17. // Global page headers (https://go.nuxtjs.dev/config-head)
  18. head: {
  19. titleTemplate: '%s - admin',
  20. title: 'admin',
  21. meta: [
  22. { charset: 'utf-8' },
  23. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  24. { hid: 'description', name: 'description', content: '' }
  25. ],
  26. link: [
  27. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  28. ]
  29. },
  30. // Global CSS (https://go.nuxtjs.dev/config-css)
  31. css: [
  32. '@/assets/css/import.scss'
  33. ],
  34. // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
  35. plugins: [
  36. '~/plugins/grid',
  37. '~/plugins/Rights/ability',
  38. './plugins/Rights/casl.js',
  39. '~/plugins/Queries/http',
  40. '~/plugins/Queries/rest'
  41. ],
  42. // Auto import components (https://go.nuxtjs.dev/config-components)
  43. components: true,
  44. // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
  45. buildModules: [
  46. // https://go.nuxtjs.dev/typescript
  47. '@nuxt/typescript-build',
  48. // https://go.nuxtjs.dev/vuetify
  49. '@nuxtjs/vuetify',
  50. '@nuxtjs/composition-api'
  51. ],
  52. // Modules (https://go.nuxtjs.dev/config-modules)
  53. modules: [
  54. '@nuxt/http'
  55. ],
  56. // Vuetify module configuration (https://go.nuxtjs.dev/config-vuetify)
  57. vuetify: {
  58. customVariables: ['~/assets/css/variables.scss'],
  59. theme: {
  60. dark: false,
  61. themes: {
  62. dark: {
  63. primary: colors.blue.darken2,
  64. accent: colors.grey.darken3,
  65. secondary: colors.amber.darken3,
  66. info: colors.teal.lighten1,
  67. warning: colors.amber.base,
  68. error: colors.deepOrange.accent4,
  69. success: colors.green.accent3
  70. },
  71. light: {
  72. ot_green: '#00ad8e',
  73. ot_light_green: '#a9e0d6',
  74. ot_dark_grey: '#2c3a48',
  75. ot_grey: '#777777',
  76. ot_light_grey: '#f5f5f5',
  77. ot_super_light_grey: '#ecf0f5',
  78. ot_danger: '#f56954',
  79. ot_success: '#00a65a',
  80. ot_warning: '#f39c12',
  81. ot_info: '#3c8dbc'
  82. },
  83. }
  84. }
  85. },
  86. // Build Configuration (https://go.nuxtjs.dev/config-build)
  87. build: {
  88. },
  89. //Port and local host
  90. server: {
  91. port: 3002,
  92. host: '0.0.0.0', // default: localhost,
  93. },
  94. //Poll for hot reloading with docker
  95. watchers: {
  96. webpack: {
  97. aggregateTimeout: 300,
  98. poll: 1000
  99. }
  100. }
  101. }