Embed Code Generator: Fix Preview HTML and Embed Lib path for production (#2688)

* Improve logging

* Improve logging

* Keep embed origin conigurable

* Make embed URL and embed origin conigurable through env

* Gitignore public embed

* Add fingerprint to preview as well

* Fix path

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Hariom Balharaandkodiakhq[bot] authored and GitHub committed 2022-05-06 15:56:26 +00:00
1 parent 83ec6d69eb
commit 67cc3a6409
17 files changed
+180 -117

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 35 KiB

+1 -1
View File
@@ -17,7 +17,7 @@ function App() {
</h1>
<Cal
calOrigin="http://localhost:3000"
embedJsUrl="//localhost:3100/dist/embed.umd.js"
embedJsUrl="//localhost:3000/embed/embed.js"
calLink="pro"
config={{
name: "John Doe",
@@ -5,6 +5,7 @@ import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
envPrefix: "NEXT_PUBLIC_",
build: {
lib: {
entry: path.resolve(__dirname, "src/index.ts"),