YouTube JS API seek

This commit is contained in:
polv committed 2026-09-23 21:05:12 +07:00
1 parent 218ba874f9
commit d9777c3c82
6 files changed
+99 -12

No files matched your search

+14 -3
View File
@@ -4,15 +4,26 @@ import { execSync } from "node:child_process";
const host = process.env.TAURI_DEV_HOST;
const {
IMG_ORIGIN = `https://git.polv.cc/polv/yt2press/raw/branch/${
execSync("git branch --show-current").toString().trimEnd()
}/docs/public`,
IMG_ORIGIN = `https://git.polv.cc/polv/yt2press/raw/branch/${execSync(
"git branch --show-current",
)
.toString()
.trimEnd()}/docs/public`,
} = process.env;
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "yt2press",
description: "video to vitepress",
head: [
[
"script",
{
async: "async",
src: "https://www.youtube.com/iframe_api",
},
],
],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [{ text: "Home", link: "/" }],