nuxt.config.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import en from "./_locales/en";
  2. import es from "./_locales/es";
  3. import tr from "./_locales/tr";
  4. import ru from "./_locales/ru";
  5. import cs from "./_locales/cs";
  6. import ja from "./_locales/ja";
  7. import fr from "./_locales/fr";
  8. import de from "./_locales/uk";
  9. // import de from "./_locales/de";
  10. // ...
  11. export default {
  12. // Global page headers: https://go.nuxtjs.dev/config-head
  13. head: {
  14. titleTemplate: "Return YouTube Dislike",
  15. title: "Return YouTube Dislike",
  16. htmlAttrs: {
  17. lang: "en",
  18. },
  19. meta: [
  20. { charset: "utf-8" },
  21. { name: "viewport", content: "width=device-width, initial-scale=1" },
  22. {
  23. hid: "description",
  24. name: "description",
  25. content:
  26. "An extension that returns dislike statistics to YouTube using a combination of scraped dislike stats and estimates extrapolated from extension user data.",
  27. },
  28. { hid: "og:image", name: "og:image", content: "/logo.png" },
  29. { hid: "theme-color", name: "theme-color", content: "#ff0000" },
  30. ],
  31. link: [
  32. { rel: "icon", type: "image/svg+xml", href: "/logo.svg" },
  33. { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
  34. ],
  35. },
  36. env: {
  37. apiUrl: "https://returnyoutubedislikeapi.com",
  38. },
  39. server: { host: "0.0.0.0", port: 80 }, //LINE FOR DEBUGGING ONLY
  40. target: "static",
  41. css: [],
  42. plugins: [],
  43. components: true,
  44. buildModules: ["@nuxtjs/vuetify"],
  45. modules: ["@nuxtjs/axios", "nuxt-user-agent"],
  46. // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  47. vuetify: {
  48. lang: {
  49. locales: { en, es, tr, ru, cs, ja, fr, uk /* de, ...*/ },
  50. current: "en",
  51. },
  52. theme: {
  53. dark: true,
  54. themes: {
  55. dark: {
  56. primary: "#ff4444",
  57. },
  58. },
  59. },
  60. },
  61. /*
  62. build: {
  63. extend(config, ctx) {
  64. // Run ESLint on save (dev-only)
  65. if (ctx.isDev && ctx.isClient) {
  66. config.module.rules.push({
  67. enforce: "pre",
  68. test: /\.(js|vue)$/,
  69. loader: "eslint-loader",
  70. exclude: /(node_modules)/,
  71. });
  72. }
  73. },
  74. }
  75. */
  76. };