当我用astro run dev
和astro preview
运行Astro网站时,它运行得很好,但当我运行Astro Build并将输出(dist文件夹)放到我的网站上时,我最终得到了很好的网站,但css不在那里.Css显示在dist文件夹中,并且文件路径正确.
还有一个人在Stackoverflow上问了类似的问题.他们的解决方案是将网站上传到网络服务器上,而不是双击.这就是我所做的,但它仍然不起作用.
this is what its supposed to look like:
but this is what it looks like on the server(thel1ama.com/dist)