diff --git a/index.html b/index.html
index 7f879e60..e3593d62 100644
--- a/index.html
+++ b/index.html
@@ -55,7 +55,6 @@
- {{ message }}
diff --git a/package.json b/package.json
index 71fef462..2f6c3919 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/src/assets/opensearch.xml b/src/assets/opensearch.xml.hbs
similarity index 75%
rename from src/assets/opensearch.xml
rename to src/assets/opensearch.xml.hbs
index 720fc4b9..3f188d6f 100644
--- a/src/assets/opensearch.xml
+++ b/src/assets/opensearch.xml.hbs
@@ -2,5 +2,5 @@
movie-web
The place for your favorite movies & shows
UTF-8
-
+
diff --git a/src/assets/test.txt.hbs b/src/assets/test.txt.hbs
deleted file mode 100644
index c9198963..00000000
--- a/src/assets/test.txt.hbs
+++ /dev/null
@@ -1 +0,0 @@
-msg: '{{ message }}'!
diff --git a/vite.config.ts b/vite.config.ts
index b16ec0a9..ad3ee9ec 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -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({
diff --git a/yarn.lock b/yarn.lock
index 8b7759b5..33546103 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -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"