Skip to content

Commit f7d94a4

Browse files
committed
fix: serve .md files as text/plain instead of download
1 parent bbd9ba6 commit f7d94a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nginx/devsol-frontend.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ server {
4040
proxy_set_header X-Forwarded-Proto $scheme;
4141
}
4242

43+
# Serve .md files as plain text
44+
location ~* \.md$ {
45+
default_type text/plain;
46+
charset utf-8;
47+
}
48+
4349
# Cache static assets
4450
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
4551
expires 30d;

0 commit comments

Comments
 (0)