Skip to content
Back to skills

2841 Core Hosting 69e8d015

ASecurity

Build and deploy Slidev presentations

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopsbashnodedockergit

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2841-core-hosting_69e8d015 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2841 Core Hosting 69e8d015?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2841 Core Hosting 69e8d015
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2841-core-hosting-69e8d015/badge)](https://www.skillsdirectory.com/skills/tools-only-2841-core-hosting-69e8d015)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: hosting
description: Build and deploy Slidev presentations
---

# Hosting & Deployment

Build and deploy Slidev presentations.

## Build for Production

```bash
slidev build
```

Output: `dist/` folder (static SPA)

### Options

```bash
slidev build --base /talks/my-talk/    # Custom base path
slidev build --out public              # Custom output dir
slidev build --download                # Include PDF
slidev build --without-notes           # Exclude notes
```

### Multiple Presentations

```bash
slidev build slides1.md slides2.md
```

## GitHub Pages

### GitHub Actions

Create `.github/workflows/deploy.yml`:

```yaml
name: Deploy

on:
  push:
    branches: [main]

permissions:
  contents: read
  pages: write
  id-token: write

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          node-version: 'lts/*'

      - name: Install
        run: npm install

      - name: Build
        run: npm run build -- --base /${{ github.event.repository.name }}/

      - uses: actions/configure-pages@v4

      - uses: actions/upload-pages-artifact@v3
        with:
          path: dist

      - uses: actions/deploy-pages@v4
```

## Netlify

Create `netlify.toml`:

```toml
[build]
  publish = 'dist'
  command = 'npm run build'

[[redirects]]
  from = '/*'
  to = '/index.html'
  status = 200
```

## Vercel

Create `vercel.json`:

```json
{
  "rewrites": [
    { "source": "/(.*)", "destination": "/index.html" }
  ]
}
```

## Docker

### Using Official Image

```bash
docker run --name slidev --rm -it \
  -v ${PWD}:/slidev \
  -p 3030:3030 \
  tangramor/slidev:latest
```

### Custom Dockerfile

```dockerfile
FROM tangramor/slidev:latest

COPY slides.md .
COPY public ./public

RUN npm run build

EXPOSE 80
CMD ["npx", "serve", "dist"]
```

## Base Path

For subdirectory deployment:

```bash
# Build
slidev build --base /my-slides/

# Or in headmatter
---
base: /my-slides/
---
```

## Router Mode

For servers without rewrite support:

```yaml
---
routerMode: hash
---
```

URLs become: `/#/1`, `/#/2`, etc.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.