Options
All
  • Public
  • Public/Protected
  • All
Menu

External module Backends

Index

Functions

awsS3

  • Creates a fetch-like proxy function for making requests to AWS S3.

    Example:

    import { awsS3 } from "./src/backends";
    const backend = awsS3({
     bucket: "flyio-test-website",
     // region: "us-east-1"
     // credentials: { // for private S3 buckets
     //   accessKeyId: app.config.aws_access_key_id,
     //   secretAccessKey: app.config.aws_secret_access_key, // store this as a secret
     // }
    });
    module

    Backends

    Parameters

    Returns ProxyFunction<AwsS3Options>

ghostProBlog

  • Creates a fetch like function for proxying requests to hosted Ghost Pro blogs.

    Example:

    import { ghost } from "./src/backends";
    const backend = ghost({
     subdomain: "fly-io",
     directory: "/articles/",
     hostname: "fly.io"
    });

    Parameters

    • options: SubdomainOptions | string

      Ghost Pro blog information. Accepts subdomain as a string.

    Returns ProxyFunction<SubdomainOptions>

githubPages

glitch

  • Creates a fetch like function for proxying requests to Glitch apps.

    Example:

    import { glitch } from "./src/backends";
    
    const backend = glitch({
     appName: "fly-example"
    })

    Parameters

    • options: GlitchOptions | string

      Glitch app information. Accepts appName as a string.

    Returns ProxyFunction<SubdomainOptions>

heroku

netlify

  • Creates a fetch like function for proxying requests to hosted Netlify sites.

    Example:

    import { netlify } from "./src/backends";
    const backend = netlify({
     subdomain: "example"
    });

    Parameters

    • options: SubdomainOptions | string

      Netlify site information. Accepts subdomain as a string.

    Returns ProxyFunction<SubdomainOptions>

squarespace

  • Creates a fetch like function for proxying requests to hosted Squarespace.

    Example:

    import { squarespace } from "./src/backends";
    const backend = squarespace({
     subdomain: "archmotorcycle",
     directory: "/",
     hostname: "www.archmotorcycle.com"
    });

    Parameters

    • options: SubdomainOptions | string

      SquareSpace information. Accepts subdomain as a string.

    Returns ProxyFunction<SubdomainOptions>

Generated using TypeDoc