0.2.1 • Published 1 year ago
scale0 v0.2.1
Scale0
Serverless WordPress on Vercel or Netlify
Just want to get started?
Try the WordPress starter project!
Netlify | Vercel |
---|---|
Overview
Scale0 includes PHP 8.1 with common extensions and libraries required by WordPress to run in the Serverless function Node.js runtimes of Vercel and Netlify.
Usage
npm i scale0
Then in your project's function directory use Scale0 in a file like api/index.js:
const path = require('path');
const scale0 = require('scale0');
exports.handler = async function (event, context, callback) {
const pathToWP = path.join(process.cwd(), 'wp');
return await scale0({docRoot: pathToWP, event: event});
}
Where
- docRoot is the path to WordPress files
- event is the serverless event data from Vercel or Netlify
0.2.1
1 year ago
0.2.1-alpha
1 year ago
0.2.0
1 year ago
0.2.0-alpha3
1 year ago
0.2.0-alpha2
1 year ago
0.2.0-alpha
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago