diff --git a/lib/fastify-lambda.ts b/lib/fastify-lambda.ts index 24d4086..c98d646 100644 --- a/lib/fastify-lambda.ts +++ b/lib/fastify-lambda.ts @@ -5,9 +5,9 @@ import { FastifyInstance } from "fastify" // https://www.fastify.io/docs/latest/Serverless/#vercel // https://vercel.com/docs/serverless-functions/supported-languages#using-typescript // -export const createLambdaHandler: (server: FastifyInstance) => VercelApiHandler = ( - server, -) => { +export const createLambdaHandler: ( + server: FastifyInstance, +) => VercelApiHandler = (server) => { return async (req: VercelRequest, res: VercelResponse) => { await server.ready() server.server.emit("request", req, res) diff --git a/lib/index.ts b/lib/index.ts index 4be71fe..76788d4 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -8,9 +8,9 @@ import { registerServeStatic } from "./fastify-static" import { registerGitHubOAuth } from "./github-oauth" import { Config } from "./types" -export const createLambdaProxyAuthHandler: (config: Config) => VercelApiHandler = ( - config, -) => { +export const createLambdaProxyAuthHandler: ( + config: Config, +) => VercelApiHandler = (config) => { assert(config.cryptoSecret, "config.cryptoSecret", assert.string.nonEmpty) assert(config.githubClientId, "config.githubClientId", assert.string.nonEmpty) assert( diff --git a/package.json b/package.json index b62bbb0..249d3ff 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "dist" ], "scripts": { - "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"", + "format": "prettier --write .", "prepack": "tsc --project tsconfig.build.json", "typecheck": "tsc --noEmit" }, diff --git a/static/index.html b/static/index.html index faa82e6..2d7c260 100644 --- a/static/index.html +++ b/static/index.html @@ -16,8 +16,18 @@ color: #0a0d15; padding: 1rem; margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + font-family: + -apple-system, + BlinkMacSystemFont, + Segoe UI, + Roboto, + Oxygen, + Ubuntu, + Cantarell, + Fira Sans, + Droid Sans, + Helvetica Neue, + sans-serif; } a { color: inherit; diff --git a/static/user/index.html b/static/user/index.html index c129df6..21b4fb4 100644 --- a/static/user/index.html +++ b/static/user/index.html @@ -16,8 +16,18 @@ color: #0a0d15; padding: 1rem; margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + font-family: + -apple-system, + BlinkMacSystemFont, + Segoe UI, + Roboto, + Oxygen, + Ubuntu, + Cantarell, + Fira Sans, + Droid Sans, + Helvetica Neue, + sans-serif; }