Skip to content

HAMUR_E0028: An inline client bundle needs ssr: false and the static preset

An inline client bundle needs ssr: false and the static preset. Error HAMUR_E0028 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0028 build.clientBundle "inline" needs ssr: false and the static preset

Cause

build.clientBundle: "inline" is set, but the app is rendered on the server or the preset is not static. An inline bundle is a single HTML file.

Fix

Set ssr: false and use the static preset, or choose another build.clientBundle.

ts
import { defineConfig } from "hamur"

export default defineConfig({
  framework: "react",
  ssr: false,
  preset: "static",
  app: { history: "hash", routeDiscovery: "initial" },
  build: { clientBundle: "inline" },
})