fix: use relative paths for SVG imports to pass Vite fs.allow during build
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:
2026-05-30 22:20:18 +08:00
parent 6014a576ff
commit 659c22707b
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
四表结构,清晰的实体关系
<div class="flex justify-center">
<img src="/data-model.svg" class="w-full max-h-[250px] object-contain" />
<img src="../public/data-model.svg" class="w-full max-h-[250px] object-contain" />
</div>
<div class="grid grid-cols-2 gap-4 mt-2">