mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 06:05:31 +03:00
Fix cookie import.
This commit is contained in:
parent
207518d6b8
commit
e4e20646c5
@ -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);`
|
||||
: `
|
||||
|
Loading…
Reference in New Issue
Block a user