DuskBuildConfig
Build-time settings (not part of the server bundle).
Build-time settings (not part of the server bundle).
Import#
ts
import type { DuskBuildConfig } from "@shadow-js/dusk/vite";
Signature#
ts
interface DuskBuildConfig {
/**
* Whether the build scans the client output for secrets. Default `true`: the build fails when a text file under
* `dist/client` (bundles, prerendered pages, files from `public/`, source maps) holds the value of a server variable
* or the shape of a common credential (an AWS key id, a Stripe or Clerk secret key, a GitHub, Slack or Google token,
* a webhook signing secret, a private key). `false` turns the scan off for the app; a secret in the browser output is
* then the app's responsibility.
*/
readonly secretScan?: boolean;
/** Size budgets; `dusk build` warns for a page over one, or fails when `enforce` is set. */
readonly budgets?: DuskBuildBudgets;
}
Members#
| Name | Type | Description |
|---|---|---|
secretScan? |
readonly secretScan?: boolean |
Whether the build scans the client output for secrets. Default true: the build fails when a text file under dist/client (bundles, prerendered pages, files from public/, source maps) holds the value of a server variable or the shape of a common credential (an AWS key id, a Stripe or Clerk secret key, a GitHub, Slack or Google token, a webhook signing secret, a private key). false turns the scan off for the app; a secret in the browser output is then the app's responsibility. |
budgets? |
readonly budgets?: DuskBuildBudgets |
Size budgets; dusk build warns for a page over one, or fails when enforce is set. |