Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/guides/frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ With no flags, `sf publish` builds a detected project, and publishes the directo

## Which directory to publish

Detection uses this table for both paths. For a prebuilt static site, pass the output directory to `sf publish`. For a server-rendered Next.js app, run `sf publish` from the project root so Spacefast can package the server.
Detection uses this table for both paths. For a prebuilt static site, pass the output directory to `sf publish`. For a server-rendered Next.js or Nuxt app, run `sf publish` from the project root so Spacefast can package the server.

| Framework | Detected by | Default build command | Output directory |
| --- | --- | --- | --- |
| `vinext` | `vinext` dependency, unless the build script runs `next build`. If `next` is also installed, the build script must run `vinext build`, `vinext deploy`, or `vinext export` | `vinext build` | `dist/client` |
| [Next.js, server-rendered](/guides/recipes/next) | `next` or `nextra` dependency on a supported release | `next build` | Run `sf publish` from the project root |
| [Next.js, static export](/guides/recipes/next#the-output-directory) | Next.js configured with `output: "export"` | `next build` | `out` by default. Run `sf publish ./out --prebuilt` |
| TanStack Start | `@tanstack/react-start` dependency | package script | `dist/client` |
| Nuxt | `nuxt` dependency | `nuxt generate` | `.output/public` |
| Nuxt | `nuxt` dependency | `nuxt build`, server-rendered on Functions. A `nuxt generate` build script publishes static files | `.output/public` |
| [Astro](/guides/recipes/astro) | `astro` dependency or `astro.config.*` | `astro build` | `dist` |
| VitePress | `vitepress` dependency | `vitepress build docs` | `docs/.vitepress/dist` |
| SvelteKit | `@sveltejs/kit` dependency | package script | `build` |
Expand Down
Loading