From 37f826c1093ed62f238cea612555e89bd200b847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9A=D0=B0=D1=82=D0=B0?= =?UTF-8?q?=D0=B5=D0=B2?= Date: Thu, 18 Apr 2024 16:31:58 +0000 Subject: [PATCH] AW-33 --- vite.config.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index f69953c..09f8f7b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,10 +2,21 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import * as path from 'path' -// https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], resolve: { alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }], }, + server: { + host: '0.0.0.0', + port: 5173, + strictPort: true, + hmr: { + protocol: 'ws', + port: 5174, + clientPort: 5174, + host: 'localhost', + path: '/hmr/', + }, + }, })