Commit Graph

38 Commits

Author SHA1 Message Date
Dillon Kearns
03dd16a86f Wire through custom headers and status codes for RenderPage server responses. 2022-01-17 16:56:40 -08:00
Dillon Kearns
c27377c8f7 Use dynamic route segments with different names by appending index. 2022-01-17 11:46:40 -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
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
b2c1a31c68 Handle multipart forms in dev server and adapter script. 2021-12-29 13:02:45 -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
0ac78944ce Update adapter. 2021-12-28 11:53:43 -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
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
f43e57e265 Add withBody. 2021-12-22 15:28:19 -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
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
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
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
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
a9ebd8559a Include redirects for content.json. 2021-12-16 12:05:18 -08:00
Dillon Kearns
3960da425c Fix typo. 2021-12-15 15:48:16 -08:00
Dillon Kearns
a0f34bfa19 Fix typo. 2021-12-15 15:44:48 -08:00
Dillon Kearns
7a57c331bc Use route-patterns.json to generate _redirects file. 2021-12-15 15:39:35 -08:00
Dillon Kearns
9f93efd75c Generate route patterns JSON file for use with adapter js. 2021-06-02 11:02:35 -07:00
Dillon Kearns
f5b0212952 Add a prototype of a netlify adapter script. 2021-06-02 10:02:03 -07:00