Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite 子应用,发布时必须指定baseurl 吗? #8

Open
lysdyt opened this issue Jun 30, 2022 · 3 comments
Open

Vite 子应用,发布时必须指定baseurl 吗? #8

lysdyt opened this issue Jun 30, 2022 · 3 comments

Comments

@lysdyt
Copy link

lysdyt commented Jun 30, 2022

Vite 子应用,发布时必须指定baseurl 吗?不能相对路径?

@bailicangdu
Copy link
Member

相对地址会兜底到基座域名,必须是绝对地址

@lysdyt
Copy link
Author

lysdyt commented Jul 1, 2022

这样在产品发布都得知道现场地址才能发布,vite 没有更好的办法吗?

@wjy18666
Copy link

子应用vite时,build base能否实现相对地址?例如动态根据部署的页面利用window.location.origin动态拼接?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants