-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
28 lines (28 loc) · 999 Bytes
/
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: ["bootstrap/dist/css/bootstrap.min.css"],
server: {
host: process.env.NODE_ENV === "production" ? "0.0.0.0" : "localhost",
port: process.env.PORT !== undefined ? parseInt(process.env.PORT) : 3000,
},
modules: ["~/lib/module.js"],
io: {
sockets: [
{
iox: [
"chatMessage --> chats/message",
"progress --> examples/progress",
"examples/sample <-- examples/sample",
"examples/someObj", // Bidirectional
"bidirectional",
],
namespaces: {
"/": {
emitters: ["getMessage2 + testMsg --> message2Rxd"],
listeners: ["chatMessage2", "chatMessage3 --> message3Rxd"],
},
},
},
],
},
});