mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
Allow access of dev server in LAN for touch device testing (#1528)
This commit is contained in:
10
README.md
10
README.md
@@ -425,9 +425,17 @@ hook is used to auto-format code on commit.
|
|||||||
Note: The dev server will NOT load any extension from the ComfyUI server. Only
|
Note: The dev server will NOT load any extension from the ComfyUI server. Only
|
||||||
core extensions will be loaded.
|
core extensions will be loaded.
|
||||||
|
|
||||||
- Run `npm install` to install the necessary packages
|
|
||||||
- Start local ComfyUI backend at `localhost:8188`
|
- Start local ComfyUI backend at `localhost:8188`
|
||||||
- Run `npm run dev` to start the dev server
|
- Run `npm run dev` to start the dev server
|
||||||
|
- Run `npm run dev:electron` to start the dev server with electron API mocked
|
||||||
|
|
||||||
|
#### Access dev server on touch devices
|
||||||
|
|
||||||
|
After you start the dev server, you should see following logs:
|
||||||
|

|
||||||
|
|
||||||
|
Make sure your desktop machine and touch device are on the same network. On your touch device,
|
||||||
|
navigate to `http://<server_ip>:5173` (e.g. `http://192.168.2.20:5173` here), to access the ComfyUI frontend.
|
||||||
|
|
||||||
### Unit Test
|
### Unit Test
|
||||||
|
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ const DEV_SERVER_COMFYUI_URL = process.env.DEV_SERVER_COMFYUI_URL || 'http://127
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: '',
|
base: '',
|
||||||
server: {
|
server: {
|
||||||
|
host: '0.0.0.0',
|
||||||
proxy: {
|
proxy: {
|
||||||
'/internal': {
|
'/internal': {
|
||||||
target: DEV_SERVER_COMFYUI_URL,
|
target: DEV_SERVER_COMFYUI_URL,
|
||||||
|
|||||||
Reference in New Issue
Block a user