dynamic opensearch xml

This commit is contained in:
castdrian 2023-07-22 21:15:52 +02:00
parent 21fb338631
commit d371321116
No known key found for this signature in database
6 changed files with 11 additions and 5 deletions

View file

@ -55,7 +55,6 @@
</script>
</head>
<body>
<p>{{ message }}</p>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>

View file

@ -13,6 +13,7 @@
"core-js": "^3.29.1",
"crypto-js": "^4.1.1",
"dompurify": "^3.0.1",
"dotenv": "^16.3.1",
"fscreen": "^1.2.0",
"fuse.js": "^6.4.6",
"hls.js": "^1.0.7",

View file

@ -2,5 +2,5 @@
<ShortName>movie-web</ShortName>
<Description>The place for your favorite movies &amp; shows</Description>
<InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" template="https://movie-web.app/browse/{searchTerms}" />
<Url type="text/html" template="{{ appdomain }}/browse/{searchTerms}" />
</OpenSearchDescription>

View file

@ -1 +0,0 @@
msg: '{{ message }}'!

View file

@ -5,12 +5,14 @@ import { VitePWA } from "vite-plugin-pwa";
import checker from "vite-plugin-checker";
import path from "path";
import { handlebars } from "./plugins/handlebars";
import dotenv from 'dotenv';
dotenv.config();
export default defineConfig({
plugins: [
plugins:[
handlebars({
vars: {
message: "HELLOWORLD"
appdomain: process.env.APP_DOMAIN,
},
}),
react({

View file

@ -2448,6 +2448,11 @@ dompurify@^3.0.1:
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.0.2.tgz#bc4c7c011c825e7704341a285461d8d407d9429a"
integrity sha512-B8c6JdiEpxAKnd8Dm++QQxJL4lfuc757scZtcapj6qjTjrQzyq5iAyznLKVvK+77eYNiFblHBlt7MM0fOeqoKw==
dotenv@^16.3.1:
version "16.3.1"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e"
integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==
eastasianwidth@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"