firebase/superstatic

View on GitHub
src/config.ts

Summary

Maintainability
A
0 mins
Test Coverage
export interface Configuration {
  // Defaults to the current working directory.
  public?: string;
  cleanUrls?: boolean | string[];
  rewrites?: Rewrite[];
  redirects?: Redirect[];
  headers?: Header[];
  trailingSlash?: boolean;
  i18n?: { root: string };
  errorPage?: string;
}

export interface Rewrite {
  source: string;
  destination: string;
}

export interface Redirect {
  source: string;
  destination: string;
  type?: number;
}

export interface Header {
  source: string;
  headers: {
    key: string;
    value: string;
  }[];
}