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

config文件base配置 #92

Closed
SiMuZhang opened this issue May 20, 2024 · 6 comments
Closed

config文件base配置 #92

SiMuZhang opened this issue May 20, 2024 · 6 comments

Comments

@SiMuZhang
Copy link

config文件设置 base: process.env.APP_BASE_PATH || '/',,打包部署出来界面样式是错乱的, 百度说把base设置成base: './',,这样本地打包是正常的,但是部署出来第一时间会有画面但是一会又变成404了。拉取了你的代码,打包出来的dist文件也是错乱的,
image

我看你的博客是正常的,请问大佬这个应该怎么去解决啊

@maomao1996
Copy link
Owner

你的 base 没有配置正确,嫌麻烦可以直接使用这个模板 https://github.com/maomao1996/vitepress-nav-template

@SiMuZhang
Copy link
Author

但是我看我那个base跟你的是一样的呀,没搞懂

@maomao1996
Copy link
Owner

github 部署和其他的部署是不一样的

@SiMuZhang
Copy link
Author

那page部署是使用 GitHub Actions 还是使用 Deploy from a branch

@maomao1996
Copy link
Owner

都是用的 GitHub Actions 自动部署

@SiMuZhang
Copy link
Author

好的,我试试你的模版,谢谢了

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

2 participants