next_core/next_app/
app_entry.rs

1use turbo_rcstr::RcStr;
2use turbo_tasks::ResolvedVc;
3use turbopack_core::module::Module;
4
5use crate::app_segment_config::NextSegmentConfig;
6
7/// The entry module asset for a Next.js app route or page.
8#[turbo_tasks::value(shared)]
9pub struct AppEntry {
10    /// The pathname of the route or page.
11    pub pathname: RcStr,
12    /// The original Next.js name of the route or page. This is used instead of
13    /// the pathname to refer to this entry.
14    pub original_name: RcStr,
15    /// The RSC module asset for the route or page.
16    pub rsc_entry: ResolvedVc<Box<dyn Module>>,
17    /// The source code config for this entry.
18    pub config: ResolvedVc<NextSegmentConfig>,
19}