mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
web/scheduler: worker pipeline sequencing, file exchange between workers
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
import { defineConfig, searchForWorkspaceRoot, type PluginOption } from "vite";
|
||||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import basicSSL from "@vitejs/plugin-basic-ssl";
|
||||
import { glob } from "glob";
|
||||
import mime from "mime";
|
||||
import { createSitemap } from 'svelte-sitemap/src/index'
|
||||
import basicSSL from "@vitejs/plugin-basic-ssl";
|
||||
|
||||
import { glob } from "glob";
|
||||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import { createSitemap } from "svelte-sitemap/src/index";
|
||||
import { defineConfig, searchForWorkspaceRoot, type PluginOption } from "vite";
|
||||
|
||||
import { cp, readdir, mkdir } from "node:fs/promises";
|
||||
import { createReadStream } from "node:fs";
|
||||
import { join, basename } from "node:path";
|
||||
import { createReadStream } from "node:fs";
|
||||
import { cp, readdir, mkdir } from "node:fs/promises";
|
||||
|
||||
const exposeLibAV: PluginOption = (() => {
|
||||
const IMPUT_MODULE_DIR = join(__dirname, 'node_modules/@imput');
|
||||
@ -20,7 +21,7 @@ const exposeLibAV: PluginOption = (() => {
|
||||
const filename = basename(req.url).split('?')[0];
|
||||
if (!filename) return next();
|
||||
|
||||
const [ file ] = await glob(join(IMPUT_MODULE_DIR, '/**/dist/', filename));
|
||||
const [file] = await glob(join(IMPUT_MODULE_DIR, '/**/dist/', filename));
|
||||
if (!file) return next();
|
||||
|
||||
const fileType = mime.getType(filename);
|
||||
@ -114,6 +115,6 @@ export default defineConfig({
|
||||
proxy: {}
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: [ "@imput/libav.js-remux-cli" ]
|
||||
exclude: ["@imput/libav.js-remux-cli"]
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user