-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
93 lines (81 loc) · 2.05 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
import { fileURLToPath } from "node:url";
export default defineNuxtConfig({
alias: {
"@": fileURLToPath(new URL("./", import.meta.url)),
},
app: {
layoutTransition: false,
pageTransition: false,
},
components: [{ path: "@/components", extensions: [".vue"], pathPrefix: false }],
css: [
"@fontsource-variable/roboto-flex/standard.css",
"tailwindcss/tailwind.css",
"@/styles/index.css",
"winbox/dist/css/winbox.min.css",
"leaflet/dist/leaflet.css",
],
devtools: {
enabled: process.env.NODE_ENV === "development",
//https://github.com/nuxt/devtools/issues/722
componentInspector: false,
},
eslint: {
config: {
standalone: true,
},
},
imports: { dirs: ["./config/"] },
modules: ["@pinia/nuxt", "@vueuse/nuxt", "@nuxt/eslint", "@nuxt/test-utils/module"],
nitro: { compressPublicAssets: true },
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
routeRules: {
"/**": {
headers: process.env.BOTS !== "enabled" ? { "X-Robots-Tag": "noindex, nofollow" } : {},
},
},
runtimeConfig: {
BOTS: process.env.BOTS,
public: {
apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL,
appBaseUrl: process.env.PUBLIC_URL ?? process.env.NUXT_PUBLIC_APP_BASE_URL,
mapTileLayerAttribution: process.env.NUXT_PUBLIC_MAP_TILE_LAYER_ATTRIBUTION,
mapTileLayerUrl: process.env.NUXT_PUBLIC_MAP_TILE_LAYER_URL,
matomoBaseUrl: process.env.NUXT_PUBLIC_MATOMO_BASE_URL,
matomoId: process.env.NUXT_PUBLIC_MATOMO_ID,
redmineId: process.env.NUXT_PUBLIC_REDMINE_ID,
teiBaseurl: process.env.NUXT_PUBLIC_TEI_BASEURL,
apiUser: process.env.NUXT_PUBLIC_API_USER,
apiPass: process.env.NUXT_PUBLIC_API_PASS,
currentGitSha: process.env.NUXT_PUBLIC_CURRENT_GIT_SHA,
},
},
vite: {
vue: {
script: {
defineModel: true,
},
},
},
typescript: {
shim: false,
strict: true,
// https://github.com/nuxt/nuxt/issues/14816#issuecomment-1484918081
tsConfig: {
compilerOptions: {
paths: {
"@/*": ["./*"],
},
},
},
},
future: {
compatibilityVersion: 4,
},
compatibilityDate: "2024-09-20",
});