Skip to content

Instantly share code, notes, and snippets.

@MatthewMarkgraaff
Created April 29, 2020 20:03
Show Gist options
  • Save MatthewMarkgraaff/d8175e33f0509b9b81fc81e7cb87d38f to your computer and use it in GitHub Desktop.
Save MatthewMarkgraaff/d8175e33f0509b9b81fc81e7cb87d38f to your computer and use it in GitHub Desktop.
const Koa = require('koa');
const staticKoa = new Koa();
const serve = require('koa-static');
const path = require('path');
staticKoa.use(serve(path.join(__dirname, "./client/public/"), {}));
module.exports = staticKoa;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment