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:
@@ -1,5 +1,5 @@
|
|||||||
# 系统架构全景
|
# 系统架构全景
|
||||||
|
|
||||||
<div class="mt-2 flex justify-center">
|
<div class="mt-2 flex justify-center">
|
||||||
<img src="/architecture.svg" class="w-full max-h-[500px] object-contain" />
|
<img src="../public/architecture.svg" class="w-full max-h-[500px] object-contain" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
四表结构,清晰的实体关系
|
四表结构,清晰的实体关系
|
||||||
|
|
||||||
<div class="flex justify-center">
|
<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>
|
||||||
|
|
||||||
<div class="grid grid-cols-2 gap-4 mt-2">
|
<div class="grid grid-cols-2 gap-4 mt-2">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Docker Compose 双容器 + 一键部署
|
Docker Compose 双容器 + 一键部署
|
||||||
|
|
||||||
<div class="flex justify-center">
|
<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>
|
</div>
|
||||||
|
|
||||||
<Item title="🐳 容器化方案">
|
<Item title="🐳 容器化方案">
|
||||||
|
|||||||
@@ -15,5 +15,5 @@
|
|||||||
</Item>
|
</Item>
|
||||||
|
|
||||||
<div class="mt-4 flex justify-center">
|
<div class="mt-4 flex justify-center">
|
||||||
<img src="/pipeline.svg" class="w-full max-h-[180px] object-contain" />
|
<img src="../public/pipeline.svg" class="w-full max-h-[180px] object-contain" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -15,5 +15,5 @@ Eino Chain 驱动的智能提示词生成
|
|||||||
</Item>
|
</Item>
|
||||||
|
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
<img src="/prompt-agent.svg" class="w-full max-h-[160px] object-contain" />
|
<img src="../public/prompt-agent.svg" class="w-full max-h-[160px] object-contain" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user