Commit Graph

1090 Commits

Author SHA1 Message Date
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
Dillon Kearns
71d3688dfb Use temporary redirect in example redirect route. 2021-12-22 15:28:39 -08:00
Dillon Kearns
f43e57e265 Add withBody. 2021-12-22 15:28:19 -08:00
Dillon Kearns
6df0ce9987 Add cookie parser. 2021-12-22 14:42:35 -08:00
Dillon Kearns
c43d7f474b Wire through key for accessing DataSource.ServerRequest. 2021-12-22 11:29:16 -08:00
Dillon Kearns
42126f0d4a Send multiValueHeaders in netlify adapter. 2021-12-21 17:33:41 -08:00
Dillon Kearns
7c3de6c149 Remove hardcoded query params in adapter. 2021-12-21 16:11:51 -08:00
Dillon Kearns
f6c13c0404 Handle API responses from serverless Page Modules. 2021-12-21 12:01:08 -08:00
Dillon Kearns
0d3b918048 Turn on invalid netlify route error handling, and handle errors with correct process.exit handling instead of unhandled exception. 2021-12-21 10:01:42 -08:00
Dillon Kearns
796f5d809f Include isBase64Encoded option in ServerResponse. 2021-12-21 09:45:25 -08:00
Dillon Kearns
3703916aaa Add ApiRoute.prerenderWithFallback. 2021-12-21 09:08:17 -08:00
Dillon Kearns
7f2d47c6de Add serverless ApiRoute builder and some examples in pokedex app. 2021-12-21 07:47:47 -08:00
Dillon Kearns
bc6a055e7b Gitignore folders generated from adapter. 2021-12-21 07:32:16 -08:00
Dillon Kearns
7acd5355dd Add example with server request daata source. 2021-12-20 15:47:56 -08:00
Dillon Kearns
b858556167 Update index page with links and SEO data. 2021-12-20 15:02:12 -08:00
Dillon Kearns
843ca0bacd Wire through headers, statusCode, and body from ServerResponse. Add redirect example. 2021-12-20 14:45:18 -08:00
Dillon Kearns
84096ec8dc Update adapter script to handle api-response's, but with some hardcoding for now. 2021-12-20 13:55:24 -08:00
Dillon Kearns
c79d76f473 Include kind in API routes to tell the rendering mode. Generate redirects for serverless API routes. 2021-12-20 13:35:34 -08:00
Dillon Kearns
b00882a53b Do cached build with npm run build. 2021-12-20 13:33:53 -08:00
Dillon Kearns
7eaa94a9e4 Include Pattern information for ApiRoutes. 2021-12-20 11:26:12 -08:00
Dillon Kearns
fe4f1f4d65 Use ensureDir in adapter script to prevent errors for existing dir. 2021-12-18 11:23:12 -08:00
Dillon Kearns
06ace7822e Update elm-verify-examples package. 2021-12-18 11:22:55 -08:00
Dillon Kearns
78ed00637f Fix typo. 2021-12-17 11:18:22 -08:00
Dillon Kearns
9436cf0b6d Generate different renderer function for serverless and odb. 2021-12-17 11:14:29 -08:00
Dillon Kearns
b9f3ded983 Create server-render folder from adapter. 2021-12-16 20:37:32 -08:00
Dillon Kearns
07b5bfbe61 Change values in request to JSON. 2021-12-16 19:00:40 -08:00
Dillon Kearns
99fbfda6c0 Use --debug flag in build for now. 2021-12-16 12:09:22 -08:00
Dillon Kearns
35c5be1ee0 Transform AWS event payload into event for DataSource.ServerRequest JSON. 2021-12-16 12:05:59 -08:00