Skip to content
Snippets Groups Projects
nuxt.config.js 2.92 KiB
Newer Older
import i18n from "./i18n"
CaTasTrOOf's avatar
CaTasTrOOf committed
import pkg from "./package.json"
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
export default {
	// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
	ssr: false,
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	// Target: https://go.nuxtjs.dev/config-target
	target: "static",
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

CaTasTrOOf's avatar
CaTasTrOOf committed
	// Variables that can be accessed by $config
	publicRuntimeConfig: {
		// Application version from package.json
		clientVersion: pkg.version
	},

	// Global page headers: https://go.nuxtjs.dev/config-head
	head: {
		title: "wotwizard-ui",
		meta: [
			{ charset: "utf-8" },
			{ name: "viewport", content: "width=device-width, initial-scale=1" },
			{ hid: "description", name: "description", content: "" },
			{ name: "format-detection", content: "telephone=no" }
		],
		link: [{ rel: "icon", type: "image/x-icon", href: "/favicon-96x96.png" }]
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	// Global CSS: https://go.nuxtjs.dev/config-css
	css: ["@/assets/css/style.scss"],
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
	plugins: ["~plugins/favourites.js", "~plugins/filters.js"],
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	// Auto import components: https://go.nuxtjs.dev/config-components
	components: true,
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
	buildModules: [
		// https://go.nuxtjs.dev/pwa
		"@nuxtjs/pwa",
		// https://github.com/whardier/nuxt-hero-icons
		"@nuxt-hero-icons/outline/nuxt"
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	// Modules: https://go.nuxtjs.dev/config-modules
	modules: [
		// https://github.com/nuxt-community/apollo-module
		"@nuxtjs/apollo",
		// https://i18n.nuxtjs.org
		"@nuxtjs/i18n"
	],
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	i18n: {
		defaultLocale: "fr",
		locales: [
			{
				code: "en",
				name: "English"
			},
			{
				code: "fr",
				name: "Français"
			},
			{
				code: "es",
				name: "Español"
			},
			{
				code: "de",
				name: "Deutsch"
			}
		],
		detectBrowserLanguage: {
			alwaysRedirect: true
		},
		vueI18n: i18n
	},
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	// PWA module configuration: https://go.nuxtjs.dev/pwa
	pwa: {
		icon: {
			purpose: "any"
		},
		meta: {
			name: "Wotwizard",
			author: "Paidge",
			description:
				"Vérifiez les entrées et les sorties de la toile de confiance de la monnaie libre Ğ1",
			lang: "fr",
			ogHost: "https://wotwizard.axiom-team.fr",
			ogImage: true,
			twitterCard: "app",
			nativeUI: true,
			theme_color: "#343a40"
		},
			name: "Wotwizard",
			short_name: "Wotwizard",
			description:
				"Vérifiez les entrées et les sorties de la toile de confiance de la monnaie libre Ğ1",
			lang: "fr",
			background_color: "#343a40",
			shortcuts: [
				{ name: "Favoris", url: "/favoris" },
				{ name: "Futurs membres", url: "/previsions" },
				{ name: "Lexique", url: "/lexique" },
				{ name: "Accueil", url: "/" }
			]
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed

	apollo: {
		clientConfigs: {
			default: "~/graphql/clients/coindufeu"
			//you can setup multiple clients with arbitrary names
			//, myotherclient : '~/graphql/clients/otherclient'
		}
	},
	router: {
		linkExactActiveClass: "active"
	},
	// Build Configuration: https://go.nuxtjs.dev/config-build
	build: {
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
}