Skip to content

feat: add resolve_paths_from_workdir option for relative path resolution#1051

Draft
deadbaed wants to merge 1 commit into
trunk-rs:mainfrom
deadbaed:index-html-in-other-directory
Draft

feat: add resolve_paths_from_workdir option for relative path resolution#1051
deadbaed wants to merge 1 commit into
trunk-rs:mainfrom
deadbaed:index-html-in-other-directory

Conversation

@deadbaed
Copy link
Copy Markdown
Contributor

@deadbaed deadbaed commented Feb 27, 2026

Closes #1049

Adds new flag resolve_paths_from_workdir, available on the CLI, Trunk.toml, and the RESOLVE_PATHS_FROM_WORKDIR environment variable.

I followed the instructions in the contributing.md file, I hope I did not forget anything.

@deadbaed deadbaed marked this pull request as draft February 27, 2026 15:10
@deadbaed
Copy link
Copy Markdown
Contributor Author

This works for trunk build, but when using trunk serve on an index.html file inside /nix/store/ it causes a delay of ~2 mins before the webserver launches.

When investigating it is because build_watcher() has to look over all the files in that directory, which is big.

@deadbaed deadbaed force-pushed the index-html-in-other-directory branch from dcc6ab0 to 627865f Compare February 27, 2026 16:46
@deadbaed deadbaed force-pushed the index-html-in-other-directory branch from 627865f to 5661b41 Compare March 12, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow custom base path for asset resolution

1 participant