Unverified Commit f7b979c9 authored by OJ Kwon's avatar OJ Kwon Committed by GitHub

refactor(next-api): remove unused distDir (#57789)

### What

recent define_env refactoring removed usage of separate distDir from project config.
parent 9d3b94b4
......@@ -23,7 +23,7 @@ use turbo_tasks::{
graph::{AdjacencyMap, GraphTraversal},
trace::TraceRawVcs,
Completion, Completions, IntoTraitRef, State, TaskInput, TraitRef, TransientInstance,
TryFlatJoinIterExt, Value, ValueToString, Vc,
TryFlatJoinIterExt, Value, Vc,
};
use turbopack_binding::{
turbo::{
......@@ -402,15 +402,6 @@ impl Project {
self.project_fs().root()
}
/// Returns a path to dist_dir resolved from project root path as string.
/// Currently this is only for embedding process.env.__NEXT_DIST_DIR.
/// [Note] in webpack-config, it is being injected when
/// dev && (isClient || isEdgeServer)
#[turbo_tasks::function]
async fn dist_root_string(self: Vc<Self>) -> Result<Vc<String>> {
Ok(self.node_root().to_string())
}
#[turbo_tasks::function]
pub async fn client_relative_path(self: Vc<Self>) -> Result<Vc<FileSystemPath>> {
let next_config = self.next_config().await?;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment