
* Add support to dynamically change the theme * Add Embed UI in app * Update UI as per Figma * Dynamicaly update Embed Code * Get differnet modes working in preview * Support Embed on EventType Edit, Team Link Fix and Mobile unsupported * Fix auto theme switch in Embed Snippet generator * Fix types * Self Review fixes * Remove Embed from App section * Move get query after the middleware to let middleware work on it * Add sandboxes in the document * Add error handling for embed loading * Fix types * Update snapshots and fix bug identified by tests * UI Fixes * Add Embed Tests * Respond in preview to width and height Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
23 lines
497 B
JavaScript
23 lines
497 B
JavaScript
require("dotenv").config({ path: "../../../.env" });
|
|
|
|
const path = require("path");
|
|
const { defineConfig } = require("vite");
|
|
module.exports = defineConfig({
|
|
envPrefix: "NEXT_PUBLIC_",
|
|
build: {
|
|
minify: "terser",
|
|
watch: {
|
|
include: ["src/**"],
|
|
},
|
|
terserOptions: {
|
|
format: {
|
|
comments: false,
|
|
},
|
|
},
|
|
lib: {
|
|
entry: path.resolve(__dirname, "src/embed.ts"),
|
|
name: "embed",
|
|
fileName: (format) => `embed.${format}.js`,
|
|
},
|
|
},
|
|
});
|