@motorjs/plugin-s3
v3.3.3
Published
motor plugin copy
Downloads
14
Readme
Motor plugin-s3
push static site to S3 after rendering
Installation
using yarn
yarn add @motorjs/plugin-s3
using npm
npm i -S @motorjs/plugin-s3
Usage
const motor = require('@motorjs/engine')
const S3 = require('@motorjs/plugin-s3')
const motorConfig = {
templatesDir : path.resolve('templates'),
outputDir : path.resolve('output'),
viewsDir : path.resolve('views'),
plugins: [
new S3({
s3Options: {
accessKeyId: process.env.AWS_ACCESS,
secretAccessKey: process.env.AWS_SECRET,
region: '<aws-region>',
},
bucket: '<bucjet-name>',
prefix: '<optional-prefix>',
})
]
}
motor(motorConfig)