Fix cookie import.

This commit is contained in:
Dillon Kearns 2021-12-28 15:35:56 -08:00
parent 207518d6b8
commit e4e20646c5

View File

@ -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);`
: `