> ## Documentation Index
> Fetch the complete documentation index at: https://supastack.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For the full documentation corpus in one file, fetch: https://supastack.dev/llms-full.txt

# SEO and sharing

Metadata, sitemap, robots, and social images.

## Before you begin

Open your downloaded supastack project in Visual Studio Code using File → Open Folder, then choose Terminal → New Terminal. The repository root is the folder containing package.json, apps and packages. Run the command below there and leave its terminal open. If a command is not recognized, finish the tool installation guide before continuing.

Read the platform tutorial first. A server is the app process that answers browser or phone requests. Web reads apps/web/.env.local, Expo reads apps/mobile/.env.local, and database migration commands read root .env. The no-database /dashboard demonstration is separate from real /auth accounts, which need migrated Postgres. A phone or desktop-only checkout needs a separately running Web backend.

[Install the tools and get the code](https://supastack.dev/docs/web/before-you-start.md)

[Learn commands, files and configuration](https://supastack.dev/docs/web/terminal-basics.md)

[Complete the Web first-run tutorial](https://supastack.dev/docs/web/ship-in-5-minutes.md)

```
corepack pnpm --filter @supastack/web dev
```


## Setup and configuration

Route-level metadata comes from the Next.js metadata API, pages export a metadata object or generateMetadata, resolving titles and descriptions from the locale dictionaries so search results stay localized.

sitemap.ts and robots.ts generate the crawlable surface; the Open Graph image and icon assets carry the social preview. Keep private routes, settings, billing, admin, API, out of the sitemap and disallowed in robots.

```
app/sitemap.ts    public routes only
app/robots.ts     disallow private surfaces

// per page
export const metadata = { title, description };
```


## Implementation workflow

Give every public page a unique title and description; never index search results, filtered views, or authenticated surfaces. Canonical URLs stay un-prefixed, the locale layer already redirects the default locale to the canonical path.

When you add a public route, add it to the sitemap in the same change. Keep OG imagery on brand tokens instead of baked screenshots so restyles stay consistent.


## Verification and troubleshooting

Fetch /robots.txt and /sitemap.xml on a preview deploy, validate the sitemap parses, and share-check one page, title, description, image. Confirm a noindex header or meta on search-result pages.


## Next

[Product theme](https://supastack.dev/docs/web/theming.md)
