BUILD_HTML_STAGE (src/constants.js)

gatsby · deprecated-packages/gatsby-plugin-gatsby-cloud/src/constants.js · javascript · MIT
infra

Exports constants used by a Gatsby Cloud plugin for build stages and header files.

// Source: https://github.com/gatsbyjs/gatsby | License: MIT | Copyright 2015 Gatsbyjs
// Provided via justclaw.it.com; keep this notice with the code.
import _ from "lodash"

// Gatsby values
export const BUILD_HTML_STAGE = `build-html`
export const BUILD_CSS_STAGE = `build-css`

// Plugin values
export const HEADERS_FILENAME = `_headers.json`
export const REDIRECTS_FILENAME = `_redirects.json`
export const PUBLIC_FUNCTIONS_FILENAME = `_functions.json`
export const SITE_CONFIG_FILENAME = `_gatsby-config.json`
export const CACHE_FUNCTIONS_FILENAME = `manifest.json`

export const DEFAULT_OPTIONS = {
  headers: {},
  mergeSecurityHeaders: true,
  mergeLinkHeaders: true,
  mergeCachingHeaders: true,
  transformHeaders: _.identity, // optional transform for manipulating headers for sorting, et

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key