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 ./distYour 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:
distbuildout.output/public
Make sure you're deploying the build output, not your source directory.
Framework guides
Pick your framework for specific instructions:
Frameworks
React
Vite-based React apps.
Vue
Vite-based Vue apps.
Angular
Angular CLI projects.
Svelte / SvelteKit
Static adapter or plain Svelte.
Solid
Solid + Vite.
Meta-frameworks
Next.js
Requires static export.
Nuxt
Uses nuxi generate.
Astro
Static by default.
Gatsby
Outputs to public/.

