-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
96 lines (94 loc) · 2.14 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
93
94
95
96
import { NuxtConfig } from "@nuxt/types";
import i18n from "./src/i18n";
const config: NuxtConfig = {
ssr: false,
router: {
mode: "history",
},
target: "static",
srcDir: "./src",
head: {
title: "nuxt-ts-template-source",
meta: [
{ charset: "utf-8" },
{
name: "viewport",
content: "width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no, viewport-fit=cover",
},
{
hid: "description",
name: "description",
content: "Nuxt typescript template source",
},
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{
rel: "preconnect",
href: "https://fonts.gstatic.com",
},
{
rel: "stylesheet",
href: "https://static.fox.one/font/inter/style.css",
},
],
script: [
{
src: "https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Intl",
},
],
},
loading: { color: "#fff" },
css: ["~/styles/index.scss"],
plugins: ["~/plugins/property.ts", "~/plugins/libs.ts", "~/plugins/persistedstate.ts"],
buildModules: [
"@nuxtjs/pwa",
"@nuxtjs/eslint-module",
[
"@nuxt/typescript-build",
{
typeCheck: true,
ignoreNotFoundWarnings: true,
},
],
"@nuxtjs/vuetify",
],
modules: ["@nuxtjs/axios", "@nuxtjs/dotenv", "@nuxtjs/i18n", "@nuxtjs/sitemap"],
i18n: {
baseUrl: "https://pando.im",
locales: [
{ code: "en", iso: "en-US" },
{ code: "es", iso: "es-ES" },
],
defaultLocale: "en",
vueI18n: i18n,
},
sitemap: {
hostname: "https://pando.im",
i18n: {
locales: ["en", "es"],
},
},
pwa: {
manifest: {
name: "Pando Product",
short_name: "Pando",
lang: "en",
theme_color: "#FFF",
},
},
vuetify: {
customVariables: ["~/styles/variables.scss"],
defaultAssets: false,
treeShake: true,
optionsPath: "./vuetify.options.ts",
},
build: {
transpile: ["vuetify", "@foxone/uikit"],
},
env: {
TOKEN: process.env.TOKEN || "",
APP_ENV: process.env.APP_ENV || "",
},
};
export default config;