From e4e20646c5193d43f71686e80c9fa0b0f72c682a Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Tue, 28 Dec 2021 15:35:56 -0800 Subject: [PATCH] Fix cookie import. --- examples/pokedex/adapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pokedex/adapter.js b/examples/pokedex/adapter.js index 12257039..af541f5e 100644 --- a/examples/pokedex/adapter.js +++ b/examples/pokedex/adapter.js @@ -103,10 +103,10 @@ function isServerSide(route) { */ function rendererCode(isOnDemand) { return `const path = require("path"); +const cookie = require("cookie"); ${ isOnDemand ? `const { builder } = require("@netlify/functions"); -const cookie = require("cookie"); exports.handler = builder(render);` : `