Shopify CLI Docs

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.

SettingValue
Framework presetNext.js
Install commandpnpm install
Build commandpnpm run build
Output directory.next
Node.js version22.x

Local verification before import

pnpm install
pnpm run typecheck
pnpm run build

Do not commit .next, .source, node_modules, or .vercel.

Import flow

  1. Push this repository to GitHub.
  2. In Vercel, choose Add New Project and import the repository.
  3. Keep the Next.js preset.
  4. Confirm pnpm is detected. If not, set the install command to pnpm install.
  5. Deploy.

Useful routes

  • / — landing page.
  • /docs — Fumadocs documentation tree.
  • /api/search — server-side search endpoint generated from the Fumadocs source.
  • /llms.txt and /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:

DomainRole
shopify.docs.wraith.toolsCanonical
sdocs.wraith.toolsLegacy, 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/cli generated docs data.

On this page