digitalgarden icon indicating copy to clipboard operation
digitalgarden copied to clipboard

Cloudflare compatibility(search,redirect,404)

Open coatsandhats opened this issue 1 year ago • 1 comments

Resolves #153 -Wrangler.toml to allow module syntax in page functions -404 changes to allow cloudflare auto 404 recognition -Functions/search.js for search functionality -_redirects for user specified redirection -.node-version for specifiying the node version for cloudflare builds -.elventy.js changes to passthrough _redirects

coatsandhats avatar May 13 '23 03:05 coatsandhats

After the recent upgrade to the search functionality, a serverless function for search is no longer needed. Everything is handled on the client side. Also the 404 pages are resolved at build time, so there is no need for an explicit redirect anymore.

But I'd be happy to accept a PR for the wrangler.toml file and .node-version. If it's possible, it would also be great if you could explicitly add the build command to the wrangler file as well. (Similar to the netlify.toml file)

oleeskild avatar Jun 26 '23 14:06 oleeskild