From d73ee207da17fcf0f4aa4481462e81b0f8a532a4 Mon Sep 17 00:00:00 2001 From: Jelle van Snik Date: Tue, 27 Dec 2022 16:57:11 +0100 Subject: [PATCH] slash comments --- SELFHOSTING.md | 4 ++-- public/config.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SELFHOSTING.md b/SELFHOSTING.md index 4718b9c0..7137be1f 100644 --- a/SELFHOSTING.md +++ b/SELFHOSTING.md @@ -29,9 +29,9 @@ Your proxy is now hosted on cloudflare. Note the url of your worker. you will ne 1. Download the file `movie-web.zip` from the latest release: [https://github.com/movie-web/movie-web/releases/latest](https://github.com/movie-web/movie-web/releases/latest) 2. Extract the zip file so you can edit the files. 3. Open `config.js` in notepad, VScode or similar. -4. Put your cloudflare proxy URL inbetween the double qoutes of `VITE_CORS_PROXY_URL: "",`. +4. Put your cloudflare proxy URL inbetween the double qoutes of `VITE_CORS_PROXY_URL: "",`. Make sure to not have a slash at the end of your URL. - Example (THIS IS MINE, IT WONT WORK FOR YOU): `VITE_CORS_PROXY_URL: "https://test-proxy.test.workers.dev/",` + Example (THIS IS MINE, IT WONT WORK FOR YOU): `VITE_CORS_PROXY_URL: "https://test-proxy.test.workers.dev",` 5. Save the file Your client has been prepared, you can now host it on any webhost. diff --git a/public/config.js b/public/config.js index 463fdd2c..9ffc51ab 100644 --- a/public/config.js +++ b/public/config.js @@ -1,5 +1,7 @@ window.__CONFIG__ = { + // url must NOT end with a slash VITE_CORS_PROXY_URL: "", + VITE_TMDB_API_KEY: "b030404650f279792a8d3287232358e3", VITE_OMDB_API_KEY: "aa0937c0" };