@fleek-platform/next-on-fleek
Version:
`@fleek-platform/next-on-fleek` is a CLI tool that you can use to build and develop [Next.js](https://nextjs.org/) applications so that they can run on [Fleek Functions](https://fleek.xyz/docs/platform/fleek-functions/).
25 lines (22 loc) • 379 B
text/typescript
export type HttpMethod =
| 'GET'
| 'HEAD'
| 'POST'
| 'PUT'
| 'DELETE'
| 'CONNECT'
| 'OPTIONS'
| 'TRACE'
| 'PATCH';
export type FleekRequest = {
method: HttpMethod;
headers?: Record<string, string>;
path: string;
query?: Record<string, string>;
body: string;
};
export type FleekResponse = {
status: number;
headers: Record<string, string>;
body: any;
} | any;