How to use universal-cookie-koa - 1 common examples

To help you get started, we’ve selected a few universal-cookie-koa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wavesplatform / / src / server / index.js View on Github external
import router from './routes';
import { readAssets } from './middleware/readAssets';
import serverErrorHandling from './middleware/serverErrorHandling';
import accessLog from './middleware/accessLog';
import initLogger from './middleware/initLogger';
import serveStatic from './middleware/serveStatic';
import sniffLocale from './middleware/sniffLocale';

const app = new Koa();

  // add logger to context

if (process.env.NODE_ENV === 'production') {
  app.on('error', err => {
    Raven.captureException(err, (err, eventId) => {
      console.log('Reported error ' + eventId);



Hook cookies get/set on Koa for server-rendering

Latest version published 3 months ago

Package Health Score

77 / 100
Full package analysis

Popular universal-cookie-koa functions