Commit Graph

1117 Commits

Author SHA1 Message Date
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
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
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
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
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
Dillon Kearns
2612159cde Recreate package-lock and remove obsolete npm i step in netlify. 2021-12-29 13:10:26 -08:00
Dillon Kearns
1f313d0cb8 Update package.json deps for netlify function (couldn't find cookie). 2021-12-29 13:07:55 -08:00
Dillon Kearns
b2c1a31c68 Handle multipart forms in dev server and adapter script. 2021-12-29 13:02:45 -08:00
Dillon Kearns
6534b10534 Add API for form posts, clean up Server.Request API and docs. 2021-12-29 07:58:40 -08:00
Dillon Kearns
bf98a76aed Add missing function in adapter. 2021-12-28 15:38:07 -08:00
Dillon Kearns
e4e20646c5 Fix cookie import. 2021-12-28 15:35:56 -08:00
Dillon Kearns
207518d6b8 Add cookie npm package to functions. 2021-12-28 12:03:41 -08:00
Dillon Kearns
b59bdf16c9 Install cookie dependency in pokedex project so it's available in netlify function. 2021-12-28 11:56:18 -08:00
Dillon Kearns
0ac78944ce Update adapter. 2021-12-28 11:53:43 -08:00
Dillon Kearns
572f6f2336 Add greet api function. 2021-12-28 11:53:33 -08:00
Dillon Kearns
5136dd50a6 Use Server.Request for ApiRoutes. 2021-12-28 08:32:25 -08:00
Dillon Kearns
d30dda3684 Add netlify every color example routes. 2021-12-27 14:22:59 -08:00
Dillon Kearns
10bbeb491d Use more declarative interface for Server Requests. 2021-12-26 21:56:33 -08:00
Dillon Kearns
99b35546cf Add starting point for SetCookie API. 2021-12-23 19:25:51 -08:00
Dillon Kearns
6dddcf96d0 Update ApiRoute naming for consistency with Page.elm. 2021-12-23 15:01:38 -08:00
Dillon Kearns
a3746229a7 Remove obsolete body fields for docs project ApiRoutes. 2021-12-23 13:48:06 -08:00
Dillon Kearns
1142b896b5 Add missing dependency in example. 2021-12-23 13:47:40 -08:00
Dillon Kearns
165ec1a200 Fix typo. 2021-12-23 13:47:25 -08:00
Dillon Kearns
6f82aa59f8 Add ServerRequest.withRequestTime, and make body nullable. 2021-12-23 13:34:54 -08:00
Dillon Kearns
4fedf9ee19 Rename prerender -> preRender. 2021-12-23 13:34:19 -08:00
Dillon Kearns
afb81f7224 Replace handleFallback with PageServerResponse for prerenderWithFallback. 2021-12-23 11:14:46 -08:00
Dillon Kearns
362477d6a0 Use new netlify URL to access latest builders (see https://www.netlify.com/blog/2021/10/25/faster-more-reliable-page-loads-with-update-to-on-demand-builders/). 2021-12-23 10:53:43 -08:00
Dillon Kearns
42f38cbe39 Use new ServerRequest helpers in login page. 2021-12-22 21:29:57 -08:00
Dillon Kearns
a8f801d2ca Add logout button on greet page. 2021-12-22 21:29:26 -08:00
Dillon Kearns
146240c3dd Add logout endpoint. 2021-12-22 21:29:10 -08:00
Dillon Kearns
eae2fb2065 Add greet page and login page. 2021-12-22 15:28:51 -08:00