Skip to content

Commit 99cc3d2

Browse files
committed
Update static file handling for GitHub Pages
1 parent 2b41526 commit 99cc3d2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
5555
# Create a 404.html for GitHub Pages
5656
echo '<!DOCTYPE html><html><head><meta charset="utf-8"><title>Page Not Found</title></head><body><h1>404 - Page Not Found</h1><p>The page you are looking for does not exist.</p></body></html>' > priv/static/404.html
57+
58+
# Create a _redirects file for Netlify-style redirects
59+
echo "/images/* /images/:splat 200" > priv/static/_redirects
5760
5861
- name: Deploy to GitHub Pages
5962
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)