refactor(next-api): remove unused distDir (#57789)
### What recent define_env refactoring removed usage of separate distDir from project config.
This commit is contained in:
parent
9d3b94b449
commit
f7b979c9cf
1 changed files with 1 additions and 10 deletions
|
@ -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?;
|
||||
|
|
Loading…
Reference in a new issue