Skip to content

Framework Detection

When you connect a GitHub repository, Stackpad analyzes your project to detect the framework and configure the build automatically. No Dockerfile or build configuration is needed for supported frameworks.

Supported frameworks

FrameworkDetectionDefault port
Next.jsnext in dependencies + next.config.*3000
Remix@remix-run/node in dependencies3000
Astroastro in dependencies4321
Nuxtnuxt in dependencies3000
SvelteKit@sveltejs/kit in dependencies3000
Expressexpress in dependencies3000
Honohono in dependencies3000
Static siteNo server framework detected80

How detection works

Stackpad reads your package.json (and framework-specific config files like next.config.js) to determine:

  1. Framework type — which build strategy and Dockerfile template to use
  2. Package manager — from the lockfile (pnpm-lock.yaml, yarn.lock, or package-lock.json)
  3. Build command — from the build script in package.json
  4. Start command — from the start script or framework defaults
  5. Output mode — server-rendered or static

Next.js specifics

For Next.js applications, Stackpad detects:

  • Standalone output mode (recommended) — if output: 'standalone' is set in next.config.js, Stackpad uses it for a smaller image
  • Default output — if standalone isn’t configured, the full .next directory is used
  • Static export — if output: 'export' is set, the app is served as a static site

Static sites

If no server framework is detected, Stackpad treats your project as a static site. It looks for build output in common directories:

  • dist/
  • build/
  • out/
  • public/

The static files are served with a lightweight web server.

Monorepo support

Stackpad detects pnpm workspaces and lets you specify a root directory for your service. When a root directory is set:

  • Dependencies are installed from the workspace root
  • The build runs in the specified directory
  • Only the relevant package is included in the final image

Custom Dockerfiles

If auto-detection doesn’t fit your needs, you can use a template to deploy pre-configured stacks for popular software.

What’s next?

  • Git push deploy — understand the full deployment pipeline
  • Templates — deploy pre-configured stacks for popular software