Skip to content

Instantly share code, notes, and snippets.

View ermanolca's full-sized avatar

Erman OLCA ermanolca

View GitHub Profile
@ermanolca
ermanolca / index.js
Created December 25, 2019 08:49 — forked from digitalkaoz/index.js
gatsby in aws lambda
const AWS = require("aws-sdk");
const {link} = require("linkfs");
const mock = require('mock-require');
const fs = require('fs');
const tmpDir = require('os').tmpdir();
exports.handler = (event, context) => {
rewriteFs();
invokeGatsby(context);
}