- Replace Upload-Post with a self-hosted Postiz client (postiz.py) and /api/postiz/* endpoints - Remove AI Shorts, UGC gallery, AI Agent tab, Autopilot, MCP/agent layer, and their UIs - Fix YouTube Studio thumbnail generation (google-genai >=2 Interactions API) and blocking download - Make the video upload size cap configurable/unlimited (MAX_FILE_SIZE_MB, default 0) - Update SEO/marketing/docs to the single-product self-hosted reality; lint+build green
43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import seo from './vite-plugin-seo'
|
|
|
|
// Backend target for the dev proxy. Defaults to the docker-compose service
|
|
// name; set VITE_PROXY_TARGET=http://localhost:8000 to run the dev server on
|
|
// the host against a backend reachable at localhost (no CORS, same-origin).
|
|
const backend = process.env.VITE_PROXY_TARGET || 'http://backend:8000'
|
|
const renderer = process.env.VITE_RENDER_TARGET || 'http://renderer:3100'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
// seo() runs on build only. It injects the crawler-visible homepage content
|
|
// into #root and emits the static /alternatives pages, sitemap.xml and
|
|
// llms.txt. See vite-plugin-seo.js.
|
|
plugins: [react(), seo()],
|
|
// The free tools (/youtube-transcript-generator and friends) are static
|
|
// pages emitted by seo(); their behaviour ships as small standalone entries
|
|
// with no React in them. vite-plugin-seo.js finds each entry's hashed file
|
|
// name in the bundle and adds the <script> to its page.
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: 'index.html',
|
|
'tool-transcript': 'tools/transcript.js',
|
|
'tool-metadata': 'tools/metadata.js',
|
|
'tool-vertical': 'tools/vertical.js',
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
allowedHosts: [
|
|
'openshorts.app',
|
|
'www.openshorts.app'
|
|
],
|
|
proxy: {
|
|
'/api': { target: backend, changeOrigin: true },
|
|
'/videos': { target: backend, changeOrigin: true },
|
|
'/thumbnails': { target: backend, changeOrigin: true },
|
|
'/render': { target: renderer, changeOrigin: true },
|
|
}
|
|
}
|
|
})
|