blob: 56b2c1f2e9eaee30e21745fcece130c1352989d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
import Head from "next/head";
import { parseCookies } from "nookies";
export default function Home() {
return (
<>
<Head>
<meta
name="twitter:title"
content="Moopa - Free Anime and Manga Streaming"
/>
<meta
name="twitter:description"
content="Discover your new favorite anime or manga title! Moopa offers a vast library of high-quality content, accessible on multiple devices and without any interruptions. Start using Moopa today!"
/>
<meta name="twitter:image" content="/preview.png" />
<meta
name="description"
content="Discover your new favorite anime or manga title! Moopa offers a vast library of high-quality content, accessible on multiple devices and without any interruptions. Start using Moopa today!"
/>
</Head>
</>
);
}
export async function getServerSideProps(context) {
const cookie = parseCookies(context);
if (cookie.lang === "en") {
return {
redirect: {
destination: "/en",
permanent: false,
},
};
} else if (cookie.lang === "id") {
return {
redirect: {
destination: "/id",
permanent: false,
},
};
} else {
return {
redirect: {
destination: "/en",
permanent: false,
},
};
}
}
|