Skip to content

Commit

Permalink
Missing source method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz committed Jul 13, 2023
1 parent 97be219 commit cadd754
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/next-swc/crates/next-api/src/pages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ impl PageDataEndpointVc {
.cell()
}

#[turbo_tasks::function]
async fn source(self) -> Result<SourceVc> {
let this = self.await?;
Ok(FileSourceVc::new(this.path).into())
}

#[turbo_tasks::function]
async fn ssr_data_chunk(self) -> Result<AssetVc> {
let this = self.await?;
Expand Down

0 comments on commit cadd754

Please sign in to comment.