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.

62 lines
1.4 KiB

3 years ago
  1. export default {
  2. // Global page headers: https://go.nuxtjs.dev/config-head
  3. head: {
  4. title: 'kekkon',
  5. htmlAttrs: {
  6. lang: 'en'
  7. },
  8. meta: [
  9. { charset: 'utf-8' },
  10. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  11. { hid: 'description', name: 'description', content: '' },
  12. { name: 'format-detection', content: 'telephone=no' }
  13. ],
  14. link: [
  15. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  16. ]
  17. },
  18. server: (process.env.NODE_ENV !== 'production') ? {
  19. host: '192.168.178.100',
  20. port: 3000
  21. } : {},
  22. // Global CSS: https://go.nuxtjs.dev/config-css
  23. css: [
  24. ],
  25. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  26. plugins: [
  27. ],
  28. // Auto import components: https://go.nuxtjs.dev/config-components
  29. components: true,
  30. router: {
  31. extendRoutes (routes, resolve) {
  32. routes.push(
  33. {
  34. name: 'code',
  35. path: '/:code',
  36. component: resolve(__dirname, 'pages/index.vue')
  37. }
  38. )
  39. }
  40. },
  41. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  42. buildModules: [
  43. // https://go.nuxtjs.dev/eslint
  44. '@nuxtjs/eslint-module',
  45. // https://go.nuxtjs.dev/stylelint
  46. '@nuxtjs/stylelint-module'
  47. ],
  48. // Modules: https://go.nuxtjs.dev/config-modules
  49. modules: [
  50. ],
  51. // Build Configuration: https://go.nuxtjs.dev/config-build
  52. build: {
  53. }
  54. }