-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
92 lines (90 loc) · 2.08 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// https://nuxt.com/docs/api/configuration/nuxt-config
const BASE_URL = "nuxt3-i18n-boilerplate.vercel.app";
export default defineNuxtConfig({
ssr: false,
devtools: { enabled: true },
modules: [
"@nuxtjs/i18n", // https://i18n.nuxtjs.org/
"nuxt-gtag", // https://github.com/johannschopplich/nuxt-gtag#readme
"@nuxtjs/google-fonts", // https://google-fonts.nuxtjs.org/
"@nuxtjs/color-mode", // https://color-mode.nuxtjs.org/
],
css: ["~/assets/css/main.css"],
colorMode: {
preference: "light", // default value of $colorMode.preference (dark/light/system)
fallback: "light",
classSuffix: "",
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
runtimeConfig: {
public: {
siteurl: `https://${BASE_URL}`,
BilgiNewsApiUrl: BASE_URL,
email: "[email protected]",
},
},
$development: {
runtimeConfig: {
public: {
siteurl: "http://localhost:3000",
},
},
},
i18n: {
detectBrowserLanguage: {
useCookie: true,
cookieKey: "i18n_redirected",
redirectOn: "root",
},
defaultLocale: "en",
strategy: "prefix",
lazy: true,
langDir: "lang",
customRoutes: "config",
locales: [
{ code: "en", iso: "en-GB", name: "English", file: "en.ts" },
{ code: "tr", iso: "tr-TR", name: "Türkçe", file: "tr.ts" },
],
pages: {
about: {
en: "/about",
tr: "/hakkimizda",
},
about_theteam: {
en: "/about/team",
tr: "/hakkimizda/ekip",
},
about_company: {
en: "/about/company",
tr: "/hakkimizda/firma",
},
contact: {
en: "/contact",
tr: "/iletisim",
},
products: {
en: "/products",
tr: "/urunler",
},
},
},
gtag: {
id: "X-XXXXXXXXXX",
},
googleFonts: {
families: {
Raleway: "100..900",
"Libre+Baskerville": [400, 700],
// Roboto: true,
// 'Josefin+Sans': true,
// Lato: [100, 300],
// Raleway: [400, 700],
// Inter: '200..700',
},
},
});