HuolalaTech / page-spy-web

Debug remotely and easily like chrome devtools.
https://www.pagespy.org
MIT License
4.28k stars 257 forks source link

使用二级目录映射docker,docker 环境首页报错 #174

Closed aniude closed 4 months ago

aniude commented 4 months ago

Describe the bug

环境问题需要用 nginx proxy 反代到 docker机器,访问时首页报错 我用 http://test123.com/log 指向 docker 机器

似乎是相对路径问题。

image

Steps to reproduce

No response

System Info

Unchecked runtime.lastError: The message port closed before a response was received.
index.jsdelivr.iife.js:1 Uncaught SyntaxError: Unexpected token '<' (at index.jsdelivr.iife.js:1:1)
log:45 Uncaught TypeError: Cannot read properties of undefined (reading 'setCDN')
    at log:45:22
    at script.onload (log:27:17)
(匿名) @ log:45
script.onload @ log:27
load(异步)
loadScript @ log:26
(匿名) @ log:44
log:26 [Violation] 'load' handler took 2093ms
source-map.min.js:1 Uncaught SyntaxError: Unexpected token '<' (at source-map.min.js:1:1)
log:36 Uncaught TypeError: Cannot read properties of undefined (reading 'SourceMapConsumer')
    at log:36:26
    at script.onload (log:27:17)
(匿名) @ log:36
script.onload @ log:27
load(异步)
loadScript @ log:26
(匿名) @ log:35
log:26 [Violation] 'load' handler took 1791ms

GET http://test123.com/assets/index-d7803211.js net::ERR_ABORTED 502 (Bad Gateway)
log:49 

GET http://test123.com/assets/index-e34dd1d0.css net::ERR_ABORTED 502 (Bad Gateway)


### Logs

_No response_

### Validations

- [X] Read the [FAQ](https://github.com/HuolalaTech/page-spy-web/wiki).
- [X] Read the [Contributing Guidelines](https://github.com/HuolalaTech/page-spy-web/blob/main/CONTRIBUTING.md).
- [X] Check that there isn't [already an issue](https://github.com/HuolalaTech/page-spy-web/issues) that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
aniude commented 4 months ago

跟这个问题似乎是一样,不支持 二级目录部署导致 https://github.com/HuolalaTech/page-spy-web/issues/52