0.2.1 • Published 3 years 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 scale0Then 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
3 years ago
0.2.1-alpha
3 years ago
0.2.0
3 years ago
0.2.0-alpha3
3 years ago
0.2.0-alpha2
3 years ago
0.2.0-alpha
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago