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:
1 parent
83ec6d69eb
commit
67cc3a6409
17 files changed
+180
-117
No files matched your search
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 35 KiB |
@@ -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"),
|
||||
|
||||
Reference in new issue
Block a user