-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
55 lines (53 loc) · 1.36 KB
/
nuxt.config.ts
File metadata and controls
55 lines (53 loc) · 1.36 KB
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
// https://nuxt.com/docs/api/configuration/nuxt-config
import tailwindcss from "@tailwindcss/vite";
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
css: ["@/assets/css/tailwind.css"],
ssr: false,
app: {
baseURL: '/gogo-pgc-webapp/',
},
nitro: {
preset: 'static'
},
vite: {
plugins: [tailwindcss()]
},
vue: {
compilerOptions: {
isCustomElement: (tag: string) => [
'xml',
'category',
'block',
'value',
'field',
'shadow',
'mutation',
'sep',
].includes(tag),
}
},
runtimeConfig: {
public: {
mqttBrokerUrl: process.env.MQTT_BROKER_URL || "",
broadcastTopic: process.env.BROADCAST_TOPIC || "",
broadcastPassword: process.env.BROADCAST_PASSWORD || "",
mqttRemoteTopic: process.env.MQTT_REMOTE_TOPIC || "",
mqttBlocklyTopic: process.env.MQTT_BLOCKLY_TOPIC || "",
mqttControlTopic: process.env.MQTT_CONTROL_TOPIC || "",
}
},
plugins: [
'~/plugins/mqtt-client',
'~/plugins/webhid-plugin',
],
// build: {
// transpile: [
// 'blockly/core', // or just 'blockly' if you're using the full library
// 'blockly/blocks',
// 'blockly/javascript', // and any other blockly parts you're using
// 'blockly/msg/en' // or your locale
// ]
// }
})