16 lines
351 B
JavaScript
16 lines
351 B
JavaScript
require("dotenv").config({ path: "../../../.env" });
|
|
|
|
const path = require("path");
|
|
const { defineConfig } = require("vite");
|
|
|
|
module.exports = defineConfig({
|
|
envPrefix: "NEXT_PUBLIC_",
|
|
build: {
|
|
lib: {
|
|
entry: path.resolve(__dirname, "src/embed.ts"),
|
|
name: "embed",
|
|
fileName: (format) => `embed.${format}.js`,
|
|
},
|
|
},
|
|
});
|