REFACTOR(repo): simplify project structure
- Move services/nextjs/ to nextjs/ - Move Dockerfile.prod to Dockerfile at root - Remove deploy/ folder (K8s manifests moved to K3S-HOME/web-apps) - Remove .gitea/ workflows - Update GitHub Actions for new structure - Remove develop branch triggers
This commit is contained in:
26
nextjs/app/(movies)/movies/[id]/page.tsx
Normal file
26
nextjs/app/(movies)/movies/[id]/page.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Suspense } from "react";
|
||||
import MovieInfo from "@/components/movie-info";
|
||||
import VideosInfo from "@/components/movie-videos";
|
||||
import { getMovie } from "@/components/movie-info";
|
||||
|
||||
interface Iparams {
|
||||
params: { id: string };
|
||||
}
|
||||
|
||||
export async function generateMetadata({ params: { id } }: Iparams) {
|
||||
const movie = await getMovie(id);
|
||||
return { title: movie.title };
|
||||
}
|
||||
|
||||
export default async function MovieDetail({ params: { id } }: Iparams) {
|
||||
return (
|
||||
<div>
|
||||
<Suspense fallback={<h1>Loading movie info</h1>}>
|
||||
<MovieInfo id={id} />
|
||||
</Suspense>
|
||||
<Suspense fallback={<h1>Loading videos info</h1>}>
|
||||
<VideosInfo id={id} />
|
||||
</Suspense>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user