@vevedh/create-feathers-app 0.0.0-stage → 0.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +42 -2
- package/bin/create-feathers-app.mjs +33 -0
- package/lib/planner/options.mjs +74 -0
- package/lib/planner/plan.mjs +107 -0
- package/lib/scaffold.mjs +136 -0
- package/package.json +32 -4
- package/templates/common/dev-all.mjs +46 -0
- package/templates/daisyui-ssg/.env.example +6 -0
- package/templates/daisyui-ssg/README.md +21 -0
- package/templates/daisyui-ssg/api/server.mjs +45 -0
- package/templates/daisyui-ssg/api/services/health/health.class.mjs +3 -0
- package/templates/daisyui-ssg/api/services/health/health.service.mjs +4 -0
- package/templates/daisyui-ssg/api/services/notes/notes.class.mjs +25 -0
- package/templates/daisyui-ssg/api/services/notes/notes.service.mjs +10 -0
- package/templates/daisyui-ssg/gitignore.template +16 -0
- package/templates/daisyui-ssg/index.html +2 -0
- package/templates/daisyui-ssg/package.json +39 -0
- package/templates/daisyui-ssg/scripts/prerender.mjs +14 -0
- package/templates/daisyui-ssg/scripts/serve-static.mjs +32 -0
- package/templates/daisyui-ssg/src/App.vue +14 -0
- package/templates/daisyui-ssg/src/components/NotesPanel.vue +22 -0
- package/templates/daisyui-ssg/src/entry-client.ts +9 -0
- package/templates/daisyui-ssg/src/entry-server.ts +9 -0
- package/templates/daisyui-ssg/src/stores/notes.ts +46 -0
- package/templates/daisyui-ssg/src/style.css +3 -0
- package/templates/daisyui-ssg/src/vite-env.d.ts +1 -0
- package/templates/daisyui-ssg/tsconfig.json +4 -0
- package/templates/daisyui-ssg/vite.config.ts +6 -0
- package/templates/daisyui-ssr/.env.example +6 -0
- package/templates/daisyui-ssr/README.md +21 -0
- package/templates/daisyui-ssr/api/server.mjs +45 -0
- package/templates/daisyui-ssr/api/services/health/health.class.mjs +3 -0
- package/templates/daisyui-ssr/api/services/health/health.service.mjs +4 -0
- package/templates/daisyui-ssr/api/services/notes/notes.class.mjs +25 -0
- package/templates/daisyui-ssr/api/services/notes/notes.service.mjs +10 -0
- package/templates/daisyui-ssr/gitignore.template +16 -0
- package/templates/daisyui-ssr/index.html +2 -0
- package/templates/daisyui-ssr/package.json +39 -0
- package/templates/daisyui-ssr/scripts/serve-ssr.mjs +47 -0
- package/templates/daisyui-ssr/src/App.vue +14 -0
- package/templates/daisyui-ssr/src/components/NotesPanel.vue +22 -0
- package/templates/daisyui-ssr/src/entry-client.ts +9 -0
- package/templates/daisyui-ssr/src/entry-server.ts +9 -0
- package/templates/daisyui-ssr/src/stores/notes.ts +46 -0
- package/templates/daisyui-ssr/src/style.css +3 -0
- package/templates/daisyui-ssr/src/vite-env.d.ts +1 -0
- package/templates/daisyui-ssr/tsconfig.json +4 -0
- package/templates/daisyui-ssr/vite.config.ts +7 -0
- package/templates/spa/common/.env.example +7 -0
- package/templates/spa/common/api/server.mjs +45 -0
- package/templates/spa/common/api/services/health/health.class.mjs +3 -0
- package/templates/spa/common/api/services/health/health.service.mjs +4 -0
- package/templates/spa/common/api/services/notes/notes.class.mjs +25 -0
- package/templates/spa/common/api/services/notes/notes.service.mjs +10 -0
- package/templates/spa/common/gitignore.template +19 -0
- package/templates/spa/common/index.html +3 -0
- package/templates/spa/common/src/components/NotesPanel.vue +25 -0
- package/templates/spa/common/src/stores/notes.ts +46 -0
- package/templates/spa/common/src/vite-env.d.ts +1 -0
- package/templates/spa/common/tsconfig.json +4 -0
- package/templates/spa/daisyui/src/App.vue +2 -0
- package/templates/spa/daisyui/src/components/NotesPanel.vue +22 -0
- package/templates/spa/daisyui/src/main.ts +5 -0
- package/templates/spa/daisyui/src/style.css +3 -0
- package/templates/spa/daisyui/vite.config.ts +8 -0
- package/templates/spa/quasar2/src/App.vue +3 -0
- package/templates/spa/quasar2/src/components/NotesPanel.vue +23 -0
- package/templates/spa/quasar2/src/main.ts +7 -0
- package/templates/spa/quasar2/src/style.css +1 -0
- package/templates/spa/quasar2/vite.config.ts +8 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createServer } from 'node:http'
|
|
2
|
+
import { createFeathersRuntime } from '@vevedh/vite-plugin-feathersjs'
|
|
3
|
+
const adapter = process.env.FEATHERS_ADAPTER === 'express' ? 'express' : 'koa'
|
|
4
|
+
const port = Number(process.env.FEATHERS_API_PORT || 3030)
|
|
5
|
+
const wsPort = Number(process.env.FEATHERS_SOCKET_PORT || 3031)
|
|
6
|
+
const realtime = process.env.FEATHERS_SOCKETIO === '1'
|
|
7
|
+
const origin = process.env.FEATHERS_PUBLIC_ORIGIN || 'http://127.0.0.1:5173'
|
|
8
|
+
if (!Number.isInteger(port) || port < 1024 || port > 65535 || !Number.isInteger(wsPort) || wsPort === port) throw new Error('Invalid port configuration')
|
|
9
|
+
const modules = [
|
|
10
|
+
new URL('./services/health/health.service.mjs', import.meta.url),
|
|
11
|
+
new URL('./services/notes/notes.service.mjs', import.meta.url),
|
|
12
|
+
]
|
|
13
|
+
const runtime = await createFeathersRuntime(modules.map(String), file => import(file), {
|
|
14
|
+
serviceFiles: [], adapter, prefix: '/api', cors: false,
|
|
15
|
+
socketio: realtime ? { port: wsPort, origins: [origin], host: '127.0.0.1' } : false,
|
|
16
|
+
})
|
|
17
|
+
await runtime.start()
|
|
18
|
+
const httpServer = createServer((req, res) => {
|
|
19
|
+
const pathname = new URL(req.url || '/', 'http://localhost').pathname
|
|
20
|
+
if (pathname !== '/api' && !pathname.startsWith('/api/')) {
|
|
21
|
+
res.writeHead(404, { 'content-type': 'application/json' }); res.end('{"error":"Not found"}'); return
|
|
22
|
+
}
|
|
23
|
+
// The Feathers transport is mounted at /api, while its services register as health/notes.
|
|
24
|
+
req.url = (req.url || '/').slice(4) || '/'
|
|
25
|
+
runtime.handler(req, res, error => {
|
|
26
|
+
if (res.headersSent) { res.end(); return }
|
|
27
|
+
res.writeHead(500, { 'content-type': 'application/json' })
|
|
28
|
+
res.end(JSON.stringify({ error: 'Internal server error' }))
|
|
29
|
+
if (error) console.error('[feathers] request failed')
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
await new Promise((resolve, reject) => {
|
|
33
|
+
httpServer.once('error', reject)
|
|
34
|
+
httpServer.listen(port, '127.0.0.1', resolve)
|
|
35
|
+
})
|
|
36
|
+
console.log(`Feathers ${adapter} API listening on http://127.0.0.1:${port}/api (socketio=${realtime})`)
|
|
37
|
+
let stopping = false
|
|
38
|
+
async function close() {
|
|
39
|
+
if (stopping) return
|
|
40
|
+
stopping = true
|
|
41
|
+
await new Promise(resolve => httpServer.close(resolve))
|
|
42
|
+
await runtime.close()
|
|
43
|
+
}
|
|
44
|
+
process.on('SIGINT', () => { void close().then(() => process.exit(0)) })
|
|
45
|
+
process.on('SIGTERM', () => { void close().then(() => process.exit(0)) })
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { NotFound, BadRequest } from '@feathersjs/errors'
|
|
2
|
+
export class NotesService {
|
|
3
|
+
// Feathers v5 exposes service methods through its own service wrapper. The
|
|
4
|
+
// wrapper is not necessarily this class instance, so native #private slots
|
|
5
|
+
// cannot be read through an unbound method call. Bind to the owning instance.
|
|
6
|
+
// Keep this per-service-instance: never hoist records or IDs to module scope.
|
|
7
|
+
constructor() {
|
|
8
|
+
for (const name of ['find', 'get', 'create', 'patch', 'remove']) {
|
|
9
|
+
this[name] = this[name].bind(this)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
#records = new Map([[1, { id: 1, title: 'Hello from FeathersJS v5' }]])
|
|
13
|
+
#nextId = 2
|
|
14
|
+
#id(value) { const n = Number(value); if (!Number.isSafeInteger(n) || n < 1) throw new BadRequest('Invalid note ID'); return n }
|
|
15
|
+
#title(value) {
|
|
16
|
+
const title = value?.title
|
|
17
|
+
if (typeof title !== 'string' || title.trim().length < 1 || title.length > 120) throw new BadRequest('Invalid note title')
|
|
18
|
+
return title.trim()
|
|
19
|
+
}
|
|
20
|
+
async find() { return [...this.#records.values()].map(note => ({ ...note })) }
|
|
21
|
+
async get(id) { const note = this.#records.get(this.#id(id)); if (!note) throw new NotFound('Note not found'); return { ...note } }
|
|
22
|
+
async create(data) { const note = { id: this.#nextId++, title: this.#title(data) }; this.#records.set(note.id, note); return { ...note } }
|
|
23
|
+
async patch(id, data) { const key = this.#id(id); if (!this.#records.has(key)) throw new NotFound('Note not found'); const note = { id: key, title: this.#title(data) }; this.#records.set(key, note); return { ...note } }
|
|
24
|
+
async remove(id) { const key = this.#id(id); const note = this.#records.get(key); if (!note) throw new NotFound('Note not found'); this.#records.delete(key); return { ...note } }
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NotesService } from './notes.class.mjs'
|
|
2
|
+
export default function register(app) {
|
|
3
|
+
app.use('notes', new NotesService(), { methods: ['find', 'get', 'create', 'patch', 'remove'] })
|
|
4
|
+
const service = app.service('notes')
|
|
5
|
+
// Demo-only channel: keep the entire stack loopback-only.
|
|
6
|
+
if (typeof service.publish === 'function') {
|
|
7
|
+
app.on('connection', connection => app.channel('local-demo').join(connection))
|
|
8
|
+
service.publish(() => app.channel('local-demo'))
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
node_modules/
|
|
2
|
+
dist/
|
|
3
|
+
.env*
|
|
4
|
+
!.env.example
|
|
5
|
+
*.log
|
|
6
|
+
coverage/
|
|
7
|
+
test-results/
|
|
8
|
+
playwright-report/
|
|
9
|
+
.agents/
|
|
10
|
+
AGENTS.md
|
|
11
|
+
SKILLS.md
|
|
12
|
+
*.prompt.md
|
|
13
|
+
.ai/
|
|
14
|
+
.codex/
|
|
15
|
+
.cursor/
|
|
16
|
+
.claude/
|
|
17
|
+
.mcp.json
|
|
18
|
+
.vscode/mcp.json
|
|
19
|
+
docs-private/
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="fr"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>R17 Feathers Console</title><meta name="r17-example" content="__R17_CASE__"><link rel="icon" href="data:,"></head>
|
|
3
|
+
<body><div id="app"></div><script type="module" src="/src/main.ts"></script></body></html>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { onMounted, onUnmounted, ref } from 'vue'
|
|
3
|
+
import { useNotesStore } from '../stores/notes'
|
|
4
|
+
const store = useNotesStore()
|
|
5
|
+
const title = ref('')
|
|
6
|
+
onMounted(() => { void store.load(); store.connectRealtime() })
|
|
7
|
+
onUnmounted(() => store.disconnectRealtime())
|
|
8
|
+
async function submit() {
|
|
9
|
+
await store.create(title.value)
|
|
10
|
+
if (!store.error) title.value = ''
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
<template>
|
|
14
|
+
<section aria-labelledby="notes-heading" class="notes-panel">
|
|
15
|
+
<h2 id="notes-heading">Service Feathers : notes</h2>
|
|
16
|
+
<p data-testid="realtime-status">{{ store.realtimeConnected ? 'Temps réel connecté' : 'REST actif' }}</p>
|
|
17
|
+
<p v-if="store.error" role="alert">{{ store.error }}</p>
|
|
18
|
+
<form @submit.prevent="submit"><label for="note-title">Nouvelle note</label>
|
|
19
|
+
<input id="note-title" v-model="title" aria-label="Titre de la nouvelle note" maxlength="120" required />
|
|
20
|
+
<button type="submit" :disabled="store.loading || !title.trim()">Créer une note</button>
|
|
21
|
+
</form>
|
|
22
|
+
<p data-testid="notes-count">{{ store.notes.length }} note(s)</p>
|
|
23
|
+
<ul data-testid="notes"><li v-for="note in store.notes" :key="note.id">{{ note.title }}</li></ul>
|
|
24
|
+
</section>
|
|
25
|
+
</template>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineStore } from 'pinia'
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
import { io, type Socket } from 'socket.io-client'
|
|
4
|
+
export interface Note { id: number; title: string }
|
|
5
|
+
const realtime = import.meta.env.VITE_FEATHERS_REALTIME === '1'
|
|
6
|
+
export const useNotesStore = defineStore('notes', () => {
|
|
7
|
+
const notes = ref<Note[]>([])
|
|
8
|
+
const loading = ref(false)
|
|
9
|
+
const error = ref('')
|
|
10
|
+
const realtimeConnected = ref(false)
|
|
11
|
+
let socket: Socket | undefined
|
|
12
|
+
async function load(): Promise<void> {
|
|
13
|
+
try {
|
|
14
|
+
const response = await fetch('/api/notes', { headers: { Accept: 'application/json' } })
|
|
15
|
+
if (!response.ok) throw new Error(`HTTP ${response.status}`)
|
|
16
|
+
const payload: unknown = await response.json()
|
|
17
|
+
if (!Array.isArray(payload)) throw new Error('Unexpected notes response')
|
|
18
|
+
notes.value = payload as Note[]
|
|
19
|
+
error.value = ''
|
|
20
|
+
}
|
|
21
|
+
catch (cause) { error.value = cause instanceof Error ? cause.message : 'API unavailable' }
|
|
22
|
+
}
|
|
23
|
+
async function create(title: string): Promise<void> {
|
|
24
|
+
if (loading.value || !title.trim()) return
|
|
25
|
+
loading.value = true
|
|
26
|
+
try {
|
|
27
|
+
const response = await fetch('/api/notes', {
|
|
28
|
+
method: 'POST', headers: { 'content-type': 'application/json' },
|
|
29
|
+
body: JSON.stringify({ title: title.trim() }),
|
|
30
|
+
})
|
|
31
|
+
if (!response.ok) throw new Error(`HTTP ${response.status}`)
|
|
32
|
+
await load()
|
|
33
|
+
}
|
|
34
|
+
catch (cause) { error.value = cause instanceof Error ? cause.message : 'Create failed' }
|
|
35
|
+
finally { loading.value = false }
|
|
36
|
+
}
|
|
37
|
+
function connectRealtime(): void {
|
|
38
|
+
if (!realtime || typeof window === 'undefined' || socket) return
|
|
39
|
+
socket = io(window.location.origin, { path: '/socket.io', transports: ['websocket'] })
|
|
40
|
+
socket.on('connect', () => { realtimeConnected.value = true })
|
|
41
|
+
socket.on('disconnect', () => { realtimeConnected.value = false })
|
|
42
|
+
socket.on('notes created', () => { void load() })
|
|
43
|
+
}
|
|
44
|
+
function disconnectRealtime(): void { socket?.disconnect(); socket = undefined; realtimeConnected.value = false }
|
|
45
|
+
return { notes, loading, error, realtimeConnected, load, create, connectRealtime, disconnectRealtime }
|
|
46
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": { "target": "ES2022", "lib": ["ES2022", "DOM", "DOM.Iterable"], "module": "ESNext", "moduleResolution": "Bundler", "types": ["vite/client"], "strict": true, "exactOptionalPropertyTypes": true, "noUncheckedIndexedAccess": true, "isolatedModules": true, "skipLibCheck": true, "noEmit": true, "jsx": "preserve" },
|
|
3
|
+
"include": ["src/**/*.ts", "src/**/*.vue", "vite.config.ts"]
|
|
4
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<script setup lang="ts">import NotesPanel from './components/NotesPanel.vue'</script>
|
|
2
|
+
<template><main class="min-h-screen bg-base-200 p-6"><div class="max-w-4xl mx-auto space-y-6"><header class="navbar bg-base-100 rounded-box px-6"><div class="text-xl font-bold">Feathers Console — daisyUI SPA</div></header><h1 class="text-3xl font-semibold">Vue 3, daisyUI et FeathersJS v5</h1><p>Le service Feathers est exécuté dans un processus séparé.</p><NotesPanel /></div></main></template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { onMounted, onUnmounted, ref } from 'vue'
|
|
3
|
+
import { useNotesStore } from '../stores/notes'
|
|
4
|
+
const store = useNotesStore()
|
|
5
|
+
const title = ref('')
|
|
6
|
+
onMounted(() => { void store.load(); store.connectRealtime() })
|
|
7
|
+
onUnmounted(() => store.disconnectRealtime())
|
|
8
|
+
async function submit() { await store.create(title.value); if (!store.error) title.value = '' }
|
|
9
|
+
</script>
|
|
10
|
+
<template>
|
|
11
|
+
<section class="card bg-base-100 border border-base-300 shadow-lg"><div class="card-body">
|
|
12
|
+
<h2 class="card-title">Notes FeathersJS</h2>
|
|
13
|
+
<span class="badge badge-outline" data-testid="realtime-status">{{ store.realtimeConnected ? 'Temps réel connecté' : 'REST actif' }}</span>
|
|
14
|
+
<div v-if="store.error" class="alert alert-error" role="alert">{{ store.error }}</div>
|
|
15
|
+
<form class="flex gap-3 flex-wrap" @submit.prevent="submit">
|
|
16
|
+
<label class="input flex-1"><span class="label">Titre</span><input v-model="title" aria-label="Titre de la nouvelle note" maxlength="120" required /></label>
|
|
17
|
+
<button class="btn btn-primary" type="submit" :disabled="store.loading || !title.trim()">Créer une note</button>
|
|
18
|
+
</form>
|
|
19
|
+
<p data-testid="notes-count">{{ store.notes.length }} note(s)</p>
|
|
20
|
+
<ul data-testid="notes" class="list bg-base-200 rounded-box"><li v-for="note in store.notes" :key="note.id" class="list-row">{{ note.title }}</li></ul>
|
|
21
|
+
</div></section>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
plugins: [vue(), tailwindcss()],
|
|
6
|
+
server: { host: '127.0.0.1', port: 5173, strictPort: true,
|
|
7
|
+
proxy: { '/api': 'http://127.0.0.1:3030', '/socket.io': { target: 'ws://127.0.0.1:3031', ws: true } } },
|
|
8
|
+
})
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<script setup lang="ts">import NotesPanel from './components/NotesPanel.vue'</script>
|
|
2
|
+
<template><q-layout view="hHh lpR fFf"><q-header class="bg-primary text-white"><q-toolbar><q-toolbar-title>Feathers Console — Quasar 2 SPA</q-toolbar-title></q-toolbar></q-header>
|
|
3
|
+
<q-page-container><q-page padding><main class="q-mx-auto" style="max-width: 920px"><h1 class="text-h4">Vue 3, Quasar 2 et FeathersJS v5</h1><p>Le service Feathers est exécuté dans un processus séparé.</p><NotesPanel /></main></q-page></q-page-container></q-layout></template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { onMounted, onUnmounted, ref } from 'vue'
|
|
3
|
+
import { useNotesStore } from '../stores/notes'
|
|
4
|
+
const store = useNotesStore()
|
|
5
|
+
const title = ref('')
|
|
6
|
+
onMounted(() => { void store.load(); store.connectRealtime() })
|
|
7
|
+
onUnmounted(() => store.disconnectRealtime())
|
|
8
|
+
async function submit() { await store.create(title.value); if (!store.error) title.value = '' }
|
|
9
|
+
</script>
|
|
10
|
+
<template>
|
|
11
|
+
<q-card flat bordered class="q-pa-lg">
|
|
12
|
+
<q-card-section><div class="text-h6">Notes FeathersJS</div><div data-testid="realtime-status">{{ store.realtimeConnected ? 'Temps réel connecté' : 'REST actif' }}</div></q-card-section>
|
|
13
|
+
<q-banner v-if="store.error" role="alert">{{ store.error }}</q-banner>
|
|
14
|
+
<q-card-section>
|
|
15
|
+
<form class="row items-center q-gutter-sm" @submit.prevent="submit">
|
|
16
|
+
<q-input v-model="title" label="Titre de la nouvelle note" data-testid="note-title-input" maxlength="120" outlined dense class="col" />
|
|
17
|
+
<q-btn label="Créer une note" type="submit" color="primary" :disable="store.loading || !title.trim()"/>
|
|
18
|
+
</form>
|
|
19
|
+
<p data-testid="notes-count" class="q-mt-md">{{ store.notes.length }} note(s)</p>
|
|
20
|
+
<q-list bordered separator data-testid="notes"><q-item v-for="note in store.notes" :key="note.id"><q-item-section>{{ note.title }}</q-item-section></q-item></q-list>
|
|
21
|
+
</q-card-section>
|
|
22
|
+
</q-card>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body { background: #f7f8fc; }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { quasar } from '@quasar/vite-plugin'
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
plugins: [vue(), quasar()],
|
|
6
|
+
server: { host: '127.0.0.1', port: 5173, strictPort: true,
|
|
7
|
+
proxy: { '/api': 'http://127.0.0.1:3030', '/socket.io': { target: 'ws://127.0.0.1:3031', ws: true } } },
|
|
8
|
+
})
|