Sample.app
Framework Guides

Overview

How deploying works on Sample.app.

Sample.app hosts pre-built static files. You build your project locally (or in CI), then use the samplex CLI to upload it.

npm run build
samplex deploy ./dist

Your site gets a URL like https://brave-panda.sample.app and is live immediately.

SPA fallback

If a path doesn't match a file, Sample.app serves /index.html. Client-side routing with React Router, Vue Router, or any other library works out of the box.

Output directory auto-detection

If you run samplex deploy without a directory, the CLI checks for these in order:

  1. dist
  2. build
  3. out
  4. .output/public

Make sure you're deploying the build output, not your source directory.

Framework guides

Pick your framework for specific instructions:

Frameworks

Meta-frameworks

Static site generators

On this page