Skip to content

沙箱内静态资源访问 #976

@alpha3171

Description

@alpha3171

Why do you need it?

我原本使用E2B,在沙箱内部署Vite项目后,返回的访问端点是https://端口-沙箱ID.e2b.app/ 这种方式可以正确访问沙箱内web项目
现在想要切换到OpenSandbox使用,发现代理后的地址是http://域名/sandboxes/沙箱id/proxy/端口。 这种方式运行Vite项目后,配置base = ./ 仍会出现静态资源401的问题。

How could it be?

有什么办法可以让OpenSandbox内运行的Web项目能正确展示。 从而在sandbox运行ai生成代码。感谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions