nuxt.config.js 1.9 KB

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