Host a Slidev deck
Build a portable Slidev bundle and share it through Lumdeck.
Publish the built audience version of your Slidev deck as a ZIP. Lumdeck serves the HTML, JavaScript, styles and assets in that archive. Keep editing the Markdown in your Slidev project.
Prepare the audience build
A standard Slidev build loads separate JavaScript modules and reads browser storage. In Lumdeck’s isolated viewer, that build can pass upload validation and still open blank. The following recipe was checked with Slidev 53.1.0, Vite 8 and the default theme.
- Install the build plugin in your Slidev project with
npm install --save-dev vite-plugin-singlefile@2.3.4. - Save the Lumdeck audience build configuration (opens in a new tab) as
vite.config.mjsnext toslides.md. If you already have a Vite configuration, merge the example’s plugins into it. The example inlines JavaScript and styles. When browser storage is unavailable, it keeps Slidev preferences in memory until the deck closes. - Merge these settings into the first frontmatter block of
slides.md. Hash routing gives each slide a numeric address. Disabling the default remote favicon, remote fonts and image preloading keeps this example self-contained at runtime. Include any images or fonts your slides use in the upload.
---
routerMode: hash
favicon: ''
fonts:
provider: none
preloadImages: false
---Build and package
Run the build in your Slidev project. Use a fresh ZIP filename for each release so removed assets stay out of the archive.
npx slidev build slides.md --base ./ --without-notes
(cd dist && zip -r ../deck.zip . -x 404.html _redirects)The relative base resolves bundled images under the deck’s own URL. The note-removal option excludes Slidev speaker notes. Review the output for private material, keep index.html at the archive root and upload the ZIP.
Verify navigation and sharing
Open the hosted deck. Move forward and backward and check that the image, slide title and Lumdeck’s slide indicator all change as expected. With numeric hashes such as #/2, Lumdeck can show the current slide even when Slidev does not expose a total. For a custom theme or router, follow the slide-tracking checklist.
Create a share link with the protection and expiry you need. A public link opens without a Lumdeck account. Email-code links require mailbox verification. Upload a new version to the same presentation to update current-version links.
Publish from CI
Build and ZIP the audience deck in the release job. Use the CI publishing script to upload and validate the exact version. For client setup, see the developer guide.
Framework documentation checked 20 November 2026. See Slidev building and hosting (opens in a new tab), Lumdeck’s bundle rules and static-hosting alternatives.
Last updated: 20 November 2026. See current plans and product scope and limits.