Skip to content

Conversation

@damienwebdev
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Previously, both @xelaint and I have errors at run time while working locally (and at serve when using a local ssr dev server) as a result of various usages of process.cwd().

Fixes: N/A

What is the new behavior?

Now, we no longer rely on process.cwd() instead, we determine whether or not we're using the Angular dev server and decide how to long assets from there. In addition, when running locally with a ssr server (not vite) we know grab the assets from the built browser folder.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@damienwebdev damienwebdev requested review from a team as code owners September 14, 2025 16:19
@xelaint
Copy link
Member

xelaint commented Sep 15, 2025

LGTM, linting just needs to be fixed.

…ronments

Previously, both @xelaint and I have errors at run time while working locally (and at serve when using a local ssr dev server) as a result of various usages of process.cwd().

Now, we no longer rely on process.cwd() instead, we determine whether or not we're using the Angular dev server and decide how to long assets from there. In addition, when running locally with a ssr server (not vite) we know grab the assets from the built browser folder.
@damienwebdev damienwebdev force-pushed the rework-daffio-docs-loaders branch from e928074 to f40c0a2 Compare September 15, 2025 14:21
@damienwebdev damienwebdev merged commit baa203a into develop Sep 15, 2025
6 checks passed
@damienwebdev damienwebdev deleted the rework-daffio-docs-loaders branch September 15, 2025 14:34
@gray-bot gray-bot mentioned this pull request Sep 14, 2025
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.

3 participants