diff --git a/next.config.js b/next.config.js index 1c57d0f..f0d059d 100755 --- a/next.config.js +++ b/next.config.js @@ -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 diff --git a/pages/api/certification.js b/pages/api/certification.js index 956aa91..067e512 100755 --- a/pages/api/certification.js +++ b/pages/api/certification.js @@ -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')) diff --git a/pages/api/movie/now/[id].js b/pages/api/movie/now/[id].js index 79c9dc6..a4bac3c 100755 --- a/pages/api/movie/now/[id].js +++ b/pages/api/movie/now/[id].js @@ -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 diff --git a/pages/api/movie/popular/[id].js b/pages/api/movie/popular/[id].js index e3cc7b4..93a9a10 100755 --- a/pages/api/movie/popular/[id].js +++ b/pages/api/movie/popular/[id].js @@ -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 diff --git a/pages/api/movie/top/[id].js b/pages/api/movie/top/[id].js index ccb3060..d70e4a0 100755 --- a/pages/api/movie/top/[id].js +++ b/pages/api/movie/top/[id].js @@ -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 diff --git a/pages/api/movie/trending/[id].js b/pages/api/movie/trending/[id].js index e9a6b37..3a0c61c 100755 --- a/pages/api/movie/trending/[id].js +++ b/pages/api/movie/trending/[id].js @@ -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 diff --git a/pages/api/movie/upcoming/[id].js b/pages/api/movie/upcoming/[id].js index d8161dc..0d96d7b 100755 --- a/pages/api/movie/upcoming/[id].js +++ b/pages/api/movie/upcoming/[id].js @@ -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 diff --git a/pages/api/tv/[id].js b/pages/api/tv/[id].js index 5d1e97b..1bc0126 100755 --- a/pages/api/tv/[id].js +++ b/pages/api/tv/[id].js @@ -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 diff --git a/pages/api/tv/airing/[id].js b/pages/api/tv/airing/[id].js index bcbe3e8..f60e554 100755 --- a/pages/api/tv/airing/[id].js +++ b/pages/api/tv/airing/[id].js @@ -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 diff --git a/pages/api/tv/onair/[id].js b/pages/api/tv/onair/[id].js index 0c71aec..7b5b1e3 100755 --- a/pages/api/tv/onair/[id].js +++ b/pages/api/tv/onair/[id].js @@ -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 diff --git a/pages/api/tv/popular/[id].js b/pages/api/tv/popular/[id].js index fc33f42..5cf9893 100755 --- a/pages/api/tv/popular/[id].js +++ b/pages/api/tv/popular/[id].js @@ -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 diff --git a/pages/api/tv/top/[id].js b/pages/api/tv/top/[id].js index 661dcd7..a7105cf 100755 --- a/pages/api/tv/top/[id].js +++ b/pages/api/tv/top/[id].js @@ -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 diff --git a/pages/api/tv/trending/[id].js b/pages/api/tv/trending/[id].js index 40523cd..ca81002 100755 --- a/pages/api/tv/trending/[id].js +++ b/pages/api/tv/trending/[id].js @@ -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