fix: use relative paths for SVG imports to pass Vite fs.allow during build
Deploy Slides / build-and-deploy (push) Successful in 1m15s
Deploy Slides / build-and-deploy (push) Successful in 1m15s
Slidev converts <img src> to ES imports during build. Absolute paths like /pipeline.svg resolve to the filesystem root, failing the slidev:slide-import-guard plugin. Changed to relative ../public/ paths so imports resolve within the project.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
Docker Compose 双容器 + 一键部署
|
||||
|
||||
<div class="flex justify-center">
|
||||
<img src="/deployment.svg" class="w-full max-h-[300px] object-contain" />
|
||||
<img src="../public/deployment.svg" class="w-full max-h-[300px] object-contain" />
|
||||
</div>
|
||||
|
||||
<Item title="🐳 容器化方案">
|
||||
|
||||
Reference in New Issue
Block a user