Skip to content

Instantly share code, notes, and snippets.

View chcepe's full-sized avatar
🏠
Working from home

Christian Cepe chcepe

🏠
Working from home
View GitHub Profile
@chcepe
chcepe / deploy.js
Created February 18, 2019 12:39
Script to compress Next.js build folder with web.config
const stat = require("fs").statSync;
const AdmZip = require("adm-zip");
newArchive(`deploy.zip`, [
".next",
"static",
"next.config.js",
"package-lock.json",
"package.json",
"server.js",