20 lines
598 B
TypeScript
20 lines
598 B
TypeScript
|
|
import { defineConfig } from "vite";
|
||
|
|
import react from "@vitejs/plugin-react";
|
||
|
|
import path from "path";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Builds the standalone client-side player (services/remotion/player) into a static
|
||
|
|
* bundle the Next app embeds via <iframe>. Relative base so it can be served from a
|
||
|
|
* sub-path (e.g. /player/). React-19 here, independent of the React-18 host.
|
||
|
|
*/
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
root: path.resolve(__dirname, "player"),
|
||
|
|
base: "./",
|
||
|
|
build: {
|
||
|
|
outDir: path.resolve(__dirname, "player-dist"),
|
||
|
|
emptyOutDir: true,
|
||
|
|
chunkSizeWarningLimit: 4000,
|
||
|
|
},
|
||
|
|
});
|