From 77f23bea7f7c484c90ed0069c8505d3852208b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nichlas=20W=C3=A6rnes=20Andersen?= Date: Tue, 20 Aug 2019 09:37:03 +0200 Subject: [PATCH] Fixes the runtime error when deployed ``` START RequestId: 1b0e0445-fb96-4ec8-bb2c-e33bcf21e6da Version: $LATEST 2019-08-19T15:02:31.517Z 1b0e0445-fb96-4ec8-bb2c-e33bcf21e6da Cannot find module '.' 2019-08-19T15:02:31.517Z 1b0e0445-fb96-4ec8-bb2c-e33bcf21e6da Did you forget to add it to "dependencies" in `package.json`? END RequestId: 1b0e0445-fb96-4ec8-bb2c-e33bcf21e6da REPORT RequestId: 1b0e0445-fb96-4ec8-bb2c-e33bcf21e6da Duration: 38.26 ms Billed Duration: 100 ms Memory Size: 3008 MB Max Memory Used: 23 MB RequestId: 1b0e0445-fb96-4ec8-bb2c-e33bcf21e6da Process exited before completing request ``` --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index df6db3e..f7869ea 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1,4 +1,4 @@ -const hazel = require('.') +const hazel = require('./index') const { INTERVAL: interval,