Commit Graph

3130 Commits

Author SHA1 Message Date
Dillon Kearns
5ab5881fc8 Update form API to include errors. 2022-01-03 08:43:00 -08:00
Dillon Kearns
580f845ded Make form views customizable. 2022-01-03 07:40:45 -08:00
Dillon Kearns
4ba0e99612 Preserve original values when there are validation errors. 2022-01-02 10:23:36 -08:00
Dillon Kearns
558cb98ff9 Add form server validations prototype. 2022-01-02 09:52:04 -08:00
Dillon Kearns
1165b73b61 Update form example. 2022-01-01 20:55:52 -08:00
Dillon Kearns
e4b1ba1b39 Update default user. 2022-01-01 18:35:36 -08:00
Dillon Kearns
e93f127c2c Fix import. 2022-01-01 13:55:37 -08:00
Dillon Kearns
8e2bdc68ed Add form API experiment. 2022-01-01 12:50:03 -08:00
Dillon Kearns
e71dad025a Regenerate docs. 2021-12-31 16:16:28 -08:00
Dillon Kearns
7b743cf72d Rename module. 2021-12-31 16:15:41 -08:00
Dillon Kearns
18c2030101 Rename type. 2021-12-31 16:11:01 -08:00
Dillon Kearns
86142cb6d8 Remove obsolete server request code from initial prototype. 2021-12-31 11:52:37 -08:00
Dillon Kearns
1c922f23b1 Update docs. 2021-12-31 11:43:17 -08:00
Dillon Kearns
d79311a5fa Fix tests. 2021-12-31 11:22:19 -08:00
Dillon Kearns
78ee8d0117 Fix jsonError api route. 2021-12-31 11:17:12 -08:00
Dillon Kearns
3aae8c1adf Remove Handler type in favor of a type variable for ServerRequest type. 2021-12-31 11:14:23 -08:00
Dillon Kearns
04ebcc0190 Add jsonBodyResult request function. 2021-12-31 11:03:57 -08:00
Dillon Kearns
820fdba64d Update oneOf error ordering. 2021-12-30 20:22:26 -08:00
Dillon Kearns
bfbb5866f2 Capture multiple matching errors for server requests. 2021-12-30 19:55:45 -08:00
Dillon Kearns
68a4fc42c4 Add ServerRequest tests and remove obsolete expectFormField in favor of expectFormPost. 2021-12-30 11:43:10 -08:00
Dillon Kearns
e0ac48f77a Fix tests. 2021-12-30 10:30:58 -08:00
Dillon Kearns
8851ab402d Try reading relative to root of repo for netlify function. 2021-12-30 09:45:27 -08:00
Dillon Kearns
e9926979d3 Change included_files syntax. 2021-12-30 09:40:42 -08:00
Dillon Kearns
972c0ea9ce Move secret file to content/ folder. 2021-12-30 09:38:03 -08:00
Dillon Kearns
9e9eb26a02 Try different lamda file read root. 2021-12-30 09:31:24 -08:00
Dillon Kearns
d0d205bee4 Try new filename resolution for netlify function. 2021-12-30 09:27:20 -08:00
Dillon Kearns
2a90dc9d51 Try adding path.resolve for netlify file paths. 2021-12-29 21:57:35 -08:00
Dillon Kearns
cd86a91fe5 Try different included files syntax. 2021-12-29 21:52:09 -08:00
Dillon Kearns
5e10f199d2 Force build. 2021-12-29 21:47:40 -08:00
Dillon Kearns
701d949304 Remove resolved path netlify file path read trick to see if it works. 2021-12-29 21:46:47 -08:00
Dillon Kearns
9691832aa5 Try include files setup for serverless function file reads. 2021-12-29 21:43:40 -08:00
Dillon Kearns
a53dfb406e Remove local config from netlify config. 2021-12-29 21:42:42 -08:00
Dillon Kearns
8d26233d28 Force build. 2021-12-29 21:35:25 -08:00
Dillon Kearns
6684c36852 Try resolving filepath from serverless function root. 2021-12-29 21:31:53 -08:00
Dillon Kearns
0ae28f004c Copy secret-note to server-render functions folder so it's available from serverless. 2021-12-29 21:22:56 -08:00
Dillon Kearns
5904902c47 Try adding secret-note file in functions folder. 2021-12-29 21:18:31 -08:00
Dillon Kearns
7b62788240 Force build. 2021-12-29 17:47:22 -08:00
Dillon Kearns
c14a38bfc6 Fix in-memory cache reset. 2021-12-29 17:38:45 -08:00
Dillon Kearns
d13a397507 Use in-memory fs or real fs for http cache depending on whether context is serverless. 2021-12-29 17:18:37 -08:00
Dillon Kearns
9a60119484 Rearrange template. 2021-12-29 16:02:18 -08:00
Dillon Kearns
862c48d134 Update template. 2021-12-29 15:57:12 -08:00
Dillon Kearns
7b85ef3a0b Add file upload page. 2021-12-29 15:57:04 -08:00
Dillon Kearns
f12b11ddb0 Check for base64 encoding in netlify adapter. 2021-12-29 14:25:46 -08:00
Dillon Kearns
4444ef6fc0 Update render result types and adapter script. 2021-12-29 13:58:21 -08:00
Dillon Kearns
243d4d9f0c Update adapter script and add some logging. 2021-12-29 13:37:47 -08:00
Dillon Kearns
f2ee856534 Add logs in adapter. 2021-12-29 13:28:20 -08:00
Dillon Kearns
13dca344c9 Fix adapter typo. 2021-12-29 13:28:14 -08:00
Dillon Kearns
c7ce19d14b Add missing await. 2021-12-29 13:21:49 -08:00
Dillon Kearns
ae690e4a58 Fix adapter script. 2021-12-29 13:19:08 -08:00
Dillon Kearns
0c8e4cc9d2 Delete incorrectly copy-pasted code from adapter script. 2021-12-29 13:15:13 -08:00