nuxt.config.js 2.0 KB

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