diff --git a/components/GoogleAnalytics.jsx b/components/GoogleAnalytics.jsx index cfb5f9e..60b6093 100644 --- a/components/GoogleAnalytics.jsx +++ b/components/GoogleAnalytics.jsx @@ -4,7 +4,7 @@ import { useEffect } from 'react'; // **Important** Replace this tracking ID by your Analytics code // Or you can put it into the environment file. -const GA_TRACKING_ID = 'G-0K4K425H17'; +const GA_TRACKING_ID = ''; // @ts-ignore const addPageView = (url) => { @@ -51,4 +51,4 @@ const GoogleAnalytics = () => { ); }; -export default GoogleAnalytics; \ No newline at end of file +export default GoogleAnalytics; diff --git a/components/LandingPage.jsx b/components/LandingPage.jsx index 504520c..e0c5320 100644 --- a/components/LandingPage.jsx +++ b/components/LandingPage.jsx @@ -3,6 +3,7 @@ import { useState, useEffect } from "react"; import Link from "next/link"; import PrimaryButton from "./buttons/PrimaryButton"; import SearchInput from "./small-components/SearchInput"; + function LandingPage() { const [hour, setHour] = useState(); @@ -38,7 +39,7 @@ function LandingPage() {
-
+
-
+
-

Munchyroll

+

Munchyroll Development Server

Watch HD Anime For Free

diff --git a/pages/anime/[animeId].js b/pages/anime/[animeId].js index 1380378..17e952a 100644 --- a/pages/anime/[animeId].js +++ b/pages/anime/[animeId].js @@ -11,7 +11,7 @@ export const getServerSideProps = async (context) => { const { animeId } = context.query; const res = await fetch( - `https://munchyroll-api.j21.dev/anime-details/${animeId}` + `https://munchyroll-api.onrender.com/anime-details/${animeId}` ); const data = await res.json(); diff --git a/pages/home.js b/pages/home.js index 76f2fdd..ac60555 100644 --- a/pages/home.js +++ b/pages/home.js @@ -9,9 +9,9 @@ import SearchInput from "../components/small-components/SearchInput"; import ReactGA from "react-ga"; export async function getServerSideProps() { - const popularResults = await fetch("https://munchyroll-api.j21.dev/popular"); - const moviesResults = await fetch("https://munchyroll-api.j21.dev/anime-movies"); - const recentResults = await fetch("https://munchyroll-api.j21.dev/recent-release"); + const popularResults = await fetch("https://munchyroll-api.onrender.com/popular"); + const moviesResults = await fetch("https://munchyroll-api.onrender.com/anime-movies"); + const recentResults = await fetch("https://munchyroll-api.onrender.com/recent-release"); const popular = await popularResults.json(); const movies = await moviesResults.json(); diff --git a/pages/index.js b/pages/index.js index f8f812c..7f3896e 100644 --- a/pages/index.js +++ b/pages/index.js @@ -2,7 +2,6 @@ import Head from "next/head"; import Image from "next/image"; import { useEffect } from "react"; import LandingPage from "../components/LandingPage"; -import TawkMessengerReact from "@tawk.to/tawk-messenger-react"; import styles from "../styles/Home.module.css"; @@ -14,9 +13,6 @@ export default function Home() { }); return (
-
- -
Munchyroll diff --git a/pages/search/[searchId].jsx b/pages/search/[searchId].jsx index 39daa1a..456a838 100644 --- a/pages/search/[searchId].jsx +++ b/pages/search/[searchId].jsx @@ -11,7 +11,7 @@ export const getServerSideProps = async (context) => { const { searchId } = context.query; const res = await fetch( - `https://munchyroll-api.j21.dev/search?keyw=${searchId}` + `https://munchyroll-api.onrender.com/search?keyw=${searchId}` ); const data = await res.json(); diff --git a/pages/watch/[episodeId].js b/pages/watch/[episodeId].js index 6be772b..eba4d61 100644 --- a/pages/watch/[episodeId].js +++ b/pages/watch/[episodeId].js @@ -17,7 +17,7 @@ export const getServerSideProps = async (context) => { const { episodeId } = context.query; const res = await fetch( - `https://munchyroll-api.j21.dev/vidcdn/watch/${episodeId}` + `https://munchyroll-api.onrender.com/vidcdn/watch/${episodeId}` ); const data = await res.json(); diff --git a/src/handlers/index.js b/src/handlers/index.js index 4713a1b..08493f0 100644 --- a/src/handlers/index.js +++ b/src/handlers/index.js @@ -1,5 +1,5 @@ import axios from "axios"; -const BASEURL = "https://munchyroll-api.j21.dev"; +const BASEURL = "https://munchyroll-api.onrender.com"; export const getPopularAnime = async () => { const { data } = await axios.get(`${BASEURL}/popular`); return data; diff --git a/tailwind.config.js b/tailwind.config.js index b1e84cd..4e6143e 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -34,6 +34,5 @@ module.exports = { // h4, h5, h6, p - 16px; }); }), - require("@tailwindcss/line-clamp"), ], };