From ea52156bb892400f0f6891505e34bda5c04589d7 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Fri, 23 Jun 2023 23:00:28 +0200 Subject: [PATCH] fix config.js preset and typo in documentation --- SELFHOSTING.md | 6 +++--- public/config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SELFHOSTING.md b/SELFHOSTING.md index 926322d6..5784b228 100644 --- a/SELFHOSTING.md +++ b/SELFHOSTING.md @@ -29,10 +29,10 @@ 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: "",`. Make sure to not have a slash at the end of your 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",` -5. Put your TMDB read access token inside the quotes of `VITE_TMDB_API_KEY: "",`. You can generate it for free at [https://www.themoviedb.org/settings/api](https://www.themoviedb.org/settings/api). + Example (THIS IS MINE, IT WONT WORK FOR YOU): `VITE_CORS_PROXY_URL: "https://test-proxy.test.workers.dev"` +5. Put your TMDB read access token inside the quotes of `VITE_TMDB_READ_API_KEY: ""`. You can generate it for free at [https://www.themoviedb.org/settings/api](https://www.themoviedb.org/settings/api). 6. 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 abd72baf..c08704c2 100644 --- a/public/config.js +++ b/public/config.js @@ -1,5 +1,5 @@ window.__CONFIG__ = { // url must NOT end with a slash VITE_CORS_PROXY_URL: "", - TMDB_READ_API_KEY: "" + VITE_TMDB_READ_API_KEY: "" };