Skip to content

forum和admin可以部署在不同的主机上吗? #108

@jungleford

Description

@jungleford

今天试了下把paicoding部署到另一台机器上,在本地只跑一个admin,登录会报跨域错误。

.env.development

# 本地环境
NODE_ENV = 'development'

# 本地环境接口地址
VITE_API_URL = 'http://otherhost:8080/api/admin'

# 本地环境下的域名,如果 8080 端口没有占用的话,会变,注意调整
VITE_DOMAIN = http://otherhost:8080

是要在forum的代码里设置CORS吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions