From 0c90c859f3320123228143c5d34e77ac77edff48 Mon Sep 17 00:00:00 2001 From: Chuck Carpenter Date: Mon, 18 Mar 2024 15:52:10 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20import=20of=20lib=20from?= =?UTF-8?q?=20node=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- landing/package.json | 4 +++- landing/src/layouts/MainPage.astro | 9 +++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/landing/package.json b/landing/package.json index dc88eac60..6d1636527 100644 --- a/landing/package.json +++ b/landing/package.json @@ -4,8 +4,10 @@ "type": "module", "version": "0.0.1", "scripts": { - "dev": "astro dev", + "dev": "pnpm run copy && astro dev", "start": "astro dev", + "copy": "cp -r ../shepherd.js/dist ./public", + "prebuild": "pnpm run copy", "build": "astro check && astro build", "preview": "astro preview", "astro": "astro" diff --git a/landing/src/layouts/MainPage.astro b/landing/src/layouts/MainPage.astro index 5a8e36ffb..67825b972 100644 --- a/landing/src/layouts/MainPage.astro +++ b/landing/src/layouts/MainPage.astro @@ -10,12 +10,9 @@ const shepherdIncludeCode = ` `; - -const { PUBLIC_SHEPHERD_PUBLIC_KEY, PUBLIC_SHEPHERD_FRONTEND_API } = import.meta - .env; --- - +
@@ -177,9 +174,9 @@ const { PUBLIC_SHEPHERD_PUBLIC_KEY, PUBLIC_SHEPHERD_FRONTEND_API } = import.meta -