You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
4.6 KiB

3 years ago
  1. export default {
  2. // Global page headers: https://go.nuxtjs.dev/config-head
  3. head: {
  4. title: 'FlyLocal',
  5. meta: [
  6. { charset: 'utf-8' },
  7. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  8. { hid: 'description', name: 'description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
  9. { name: 'format-detection', content: 'telephone=no' },
  10. { itemprop: 'name', content: 'Small Planes, Big Experiences' },
  11. { itemprop: 'description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
  12. { itemprop: 'image', content: 'https://flylocal.us/screenshot.png' },
  13. { property: 'og:url', content: 'https://iflylocal.com/' },
  14. { property: 'og:type', content: 'website' },
  15. { property: 'og:title', content: 'Small Planes, Big Experiences' },
  16. { property: 'og:description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
  17. { property: 'og:image', content: 'https://flylocal.us/screenshot.png' },
  18. { name: 'twitter:card', content: 'summary_large_image' },
  19. { name: 'twitter:title', content: 'Small Planes, Big Experiences' },
  20. { name: 'twitter:description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
  21. { name: 'twitter:image', content: 'https://flylocal.us/screenshot.png' }
  22. ],
  23. link: [
  24. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  25. ]
  26. },
  27. server: (process.env.NODE_ENV !== 'production') ? {
  28. host: '192.168.178.100',
  29. port: 3010
  30. } : {},
  31. serverMiddleware: [
  32. '~/middleware/redirects.js'
  33. ],
  34. // Global CSS: https://go.nuxtjs.dev/config-css
  35. css: [
  36. '~assets/css/main.css'
  37. ],
  38. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  39. plugins: [
  40. { src: '~/plugins/vue2-leaflet-markercluster.js', mode: 'client' }
  41. ],
  42. // Auto import components: https://go.nuxtjs.dev/config-components
  43. components: true,
  44. router: {
  45. extendRoutes (routes, resolve) {
  46. routes.push(
  47. {
  48. name: 'go-orig-dest',
  49. path: '/go/:o/:d',
  50. component: resolve(__dirname, 'pages/go.vue')
  51. },
  52. {
  53. name: 'go-orig',
  54. path: '/go/:o',
  55. component: resolve(__dirname, 'pages/go.vue')
  56. },
  57. {
  58. name: 'dates-orig-dest',
  59. path: '/dates/:o/:d',
  60. component: resolve(__dirname, 'pages/dates.vue')
  61. },
  62. {
  63. name: 'flights-orig-dest-departure-time',
  64. path: '/flights/:o/:d/:departure/:time',
  65. component: resolve(__dirname, 'pages/flights.vue')
  66. },
  67. {
  68. name: 'flights-orig-dest-departure',
  69. path: '/flights/:o/:d/:departure',
  70. component: resolve(__dirname, 'pages/flights.vue')
  71. }
  72. )
  73. }
  74. },
  75. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  76. buildModules: [
  77. // https://go.nuxtjs.dev/eslint
  78. //'@nuxtjs/eslint-module',
  79. // https://go.nuxtjs.dev/stylelint
  80. '@nuxtjs/stylelint-module',
  81. // https://go.nuxtjs.dev/tailwindcss
  82. '@nuxtjs/tailwindcss',
  83. '@nuxtjs/style-resources'
  84. ],
  85. styleResources: {
  86. scss: [
  87. '~assets/scss/mixins.scss',
  88. '~assets/scss/variables.scss'
  89. ]
  90. },
  91. // Modules: https://go.nuxtjs.dev/config-modules
  92. modules: [
  93. // https://go.nuxtjs.dev/axios
  94. '@nuxtjs/axios',
  95. // https://go.nuxtjs.dev/pwa
  96. '@nuxtjs/pwa',
  97. 'nuxt-leaflet',
  98. 'nuxt-vue-select',
  99. [
  100. '@adinvadim/nuxt-segment-analytics',
  101. {
  102. id: (process.env.NODE_ENV !== 'production') ? "9dEbke7oGZjUCbF01hbcycoHxrpLvVBV" : "QpcGXqVfScXUfRPbAGkbtyst6x5HNpRf",
  103. useRouter: true
  104. }]
  105. ],
  106. // Axios module configuration: https://go.nuxtjs.dev/config-axios
  107. axios: {},
  108. // PWA module configuration: https://go.nuxtjs.dev/pwa
  109. pwa: {
  110. manifest: {
  111. lang: 'en'
  112. }
  113. },
  114. // Build Configuration: https://go.nuxtjs.dev/config-build
  115. build: {
  116. extend (config, ctx) {
  117. if (ctx.isDev) {
  118. config.devtool = ctx.isClient ? 'source-map' : 'inline-source-map'
  119. }
  120. },
  121. loaders: {
  122. sass: {
  123. implementation: require('sass')
  124. },
  125. scss: {
  126. implementation: require('sass')
  127. }
  128. }
  129. },
  130. dev: process.env.NODE_ENV !== 'production'
  131. }