anse-app / chatgpt-demo

Minimal web UI for ChatGPT.
https://chatgpt.ddiu.me
MIT License
8.01k stars 3.81k forks source link

Can't access by `127.0.0.1:3000` #355

Closed danggerenba closed 1 year ago

danggerenba commented 1 year ago

Describe the bug

image image

我防火墙什么的都正常 因为我在PHP环境下 localhost能够和127.0.0.1相互转换 但这个项目就不能转换 如果是这个项目本身的配置问题 我如何去修改

Reproduction

如果是这个项目本身localhost和127.0.0.1存在配置问题 我如何去修改

System Info

<img width="330" alt="image" src="https://user-images.githubusercontent.com/119066997/230411689-e0632057-2a36-4929-b3dc-465be6d44c70.png">

Used Package Manager

npm

Validations

ddiu8081 commented 1 year ago

The default dev host is localhost only, not 127.0.0.1. If you want to set more hosts including 127.0.0.1, use --host flag.

npm run dev --host

Reference: https://docs.astro.build/en/reference/cli-reference/