Deploy to Vercel
Host this Fumadocs Shopify CLI reference on Vercel.
This repository is a standard Next.js + Fumadocs app, so it can be imported into Vercel without custom infrastructure.
The canonical production URL is shopify.docs.wraith.tools. The earlier sdocs.wraith.tools alias 308-redirects there via next.config.mjs.
Recommended Vercel settings
| Setting | Value |
|---|---|
| Framework preset | Next.js |
| Install command | pnpm install |
| Build command | pnpm run build |
| Output directory | .next |
| Node.js version | 22.x |
Local verification before import
pnpm install
pnpm run typecheck
pnpm run buildDo not commit .next, .source, node_modules, or .vercel.
Import flow
- Push this repository to GitHub.
- In Vercel, choose Add New Project and import the repository.
- Keep the Next.js preset.
- Confirm pnpm is detected. If not, set the install command to
pnpm install. - Deploy.
Useful routes
/— landing page./docs— Fumadocs documentation tree./api/search— server-side search endpoint generated from the Fumadocs source./llms.txtand/llms-full.txt— LLM-friendly exports./llms.mdx/docs/.../content.md— per-page processed Markdown.
Custom domain & legacy redirect
The project has two domains attached on Vercel:
| Domain | Role |
|---|---|
shopify.docs.wraith.tools | Canonical |
sdocs.wraith.tools | Legacy, 308 → canonical |
The redirect is defined in next.config.mjs using a host-conditional rewrite:
async redirects() {
return [
{
source: "/:path*",
has: [{ type: "host", value: "sdocs.wraith.tools" }],
destination: "https://shopify.docs.wraith.tools/:path*",
permanent: true,
},
];
}Notes
- The site uses server-rendered route handlers, which are supported by Vercel's Next.js runtime.
- No Shopify credentials are required because this is a static documentation reference, not a Shopify app.
- Re-run the extraction workflow whenever Shopify updates the
Shopify/cligenerated docs data.