Skip to content

Commit 22cbd53

Browse files
committed
Renames the builder.ts file.
1 parent 6a68882 commit 22cbd53

File tree

3 files changed

+25
-39
lines changed

3 files changed

+25
-39
lines changed

netlify/functions/builder.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { builder, Handler } from '@netlify/functions';
2+
3+
const originalResponse = {
4+
body: ':thumbsup:',
5+
statusCode: 200,
6+
ttl: 3600,
7+
};
8+
9+
const myHandler: Handler = async (event, context) => {
10+
// logic to generate the required content
11+
12+
return originalResponse;
13+
};
14+
15+
const handler = builder(myHandler);
16+
17+
export { handler };

netlify/functions/isr-builder.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

tsconfig.json

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
4+
"lib": ["dom", "dom.iterable", "esnext"],
95
"allowJs": true,
106
"skipLibCheck": true,
117
"strict": true,
@@ -21,29 +17,12 @@
2117
"incremental": true
2218
},
2319
"paths": {
24-
"@content/*": [
25-
"content/*"
26-
],
27-
"@lib/*": [
28-
"lib/*"
29-
],
30-
"@utils/*": [
31-
"utils/*"
32-
],
33-
"@hooks/*": [
34-
"hooks/*"
35-
],
36-
"@context/*": [
37-
"context/*"
38-
]
20+
"@content/*": ["content/*"],
21+
"@lib/*": ["lib/*"],
22+
"@utils/*": ["utils/*"],
23+
"@hooks/*": ["hooks/*"],
24+
"@context/*": ["context/*"]
3925
},
40-
"include": [
41-
"next-env.d.ts",
42-
"yaml.d.ts",
43-
"**/*.ts",
44-
"**/*.tsx"
45-
],
46-
"exclude": [
47-
"node_modules"
48-
]
26+
"include": ["next-env.d.ts", "yaml.d.ts", "**/*.ts", "**/*.tsx"],
27+
"exclude": ["node_modules"]
4928
}

0 commit comments

Comments
 (0)