This is an experiment to see if we can render ElderJS in Netlify functions.
See functions/lib/render-elder-page.js how ElderJS is used for serverless rendering. And see functions/account.js to see how render-elder-page.js
is being used.
Working demo available at: https://elderjs-serverless.netlify.app/
Note that you need to install Netlify cli globally, npm install netlify-cli -g
, for local development.
- Install dependencies:
npm install
- Build ElderJs for production:
npm run build
- Serve and watch functions with Netlify dev:
netlify dev