zhangyuang / ssr

A most advanced ssr framework support React17/React18/Vue2/Vue3 on Earth that implemented serverless-side render specification.
http://doc.ssr-fc.com/
MIT License
2.61k stars 284 forks source link

fix(vite): vite config base use publicPath first in client #192

Closed MervynFang closed 2 years ago

MervynFang commented 2 years ago

升级原因:修复 vite 下配置 publicPath 静态资源链接错误的问题 关注点:使用 vite 且用 cdn 部署静态资源的用户

zhangyuang commented 2 years ago

不需要这么改啊,直接设置publicPath为cdn地址就行了

zhangyuang commented 2 years ago
image image
zhangyuang commented 2 years ago

哦不对,这块有问题,但是不能这么改

MervynFang commented 2 years ago

哦不对,这块有问题,但是不能这么改

是指这么改路径固定加 client 问题?

zhangyuang commented 2 years ago

仔细想了一下,这块没问题,感谢pr