UNPKG

open-next-cdk

Version:

Deploy a NextJS app using OpenNext packaging to serverless AWS using CDK

8 lines (7 loc) 268 B
import { TokenProviderError } from "@smithy/property-provider"; export const fromStatic = ({ token }) => async () => { if (!token || !token.token) { throw new TokenProviderError(`Please pass a valid token to fromStatic`, false); } return token; };