Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
150ac7ab22 | ||
|
|
80f2adbe10 |
13 changed files with 14 additions and 13 deletions
|
|
@ -9,7 +9,8 @@ const nextConfig = {
|
|||
domains: ['source.unsplash.com', 'image.tmdb.org','i.therarbg.com','localhost'],
|
||||
},
|
||||
reactStrictMode: true,
|
||||
runtime: 'edge',
|
||||
distDir: "build",
|
||||
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl } from '../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
try {
|
||||
const response = await fetch(getUrl('movie/602334/release_dates'))
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, movieNowPlaying } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, moviePopular } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, movieTopRated } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, trendingMovieDay } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, movieUpcoming } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getTvCasts, getTvDetail } from '../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, tvAiringToday } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, tvOnTheAir } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, tvPopular } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, tvTopRated } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getUrl2, trendingTvDay } from '../../../../lib/tmdb'
|
||||
|
||||
export const config = { runtime: 'edge' };
|
||||
export default async function handler(req, res) {
|
||||
const { id } = req.query
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue