Skip to content

Commit 753b67b

Browse files
committed
fix: netlify redirect
also added pdf generation
1 parent fae9541 commit 753b67b

File tree

6 files changed

+253
-10
lines changed

6 files changed

+253
-10
lines changed

netlify.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,26 @@
55
publish = "dist"
66
command = "yarn build"
77

8+
[[redirects]]
9+
from = "/img/*"
10+
to = "/img/:splat"
11+
status = 200
12+
force = true
13+
14+
[[redirects]]
15+
from = "/assets/*"
16+
to = "/assets/:splat"
17+
status = 200
18+
force = true
19+
20+
[[redirects]]
21+
from = "/slidev-exported.pdf"
22+
to = "/slidev-exported.pdf"
23+
status = 200
24+
force = true
25+
826
[[redirects]]
927
from = "/*"
1028
to = "/index.html"
1129
status = 200
30+
force = false

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"@slidev/cli": "^0.22.1",
1010
"@slidev/theme-apple-basic": "^0.19.0",
1111
"@slidev/theme-default": "*",
12-
"@slidev/theme-seriph": "*"
12+
"@slidev/theme-seriph": "*",
13+
"playwright-chromium": "^1.12.3"
1314
},
1415
"name": "caddy"
1516
}
File renamed without changes.

slides.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
theme: seriph
33
highlighter: shiki
4+
download: true
45
layout: image-right
56
themeConfig: {'primary': '#479d2d'}
6-
image: https://raw.githubusercontent.com/ssast-tech/caddy-codecamp-2021/master/images/caddy-circle-lock.svg
7+
image: /img/caddy-circle-lock.svg
78
class: 'flex flex-col justify-center'
89
title: 'Caddy - SSAST 2021 Summer Codecamp'
910
---

vercel.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)