Rename assets folder? #8728
-
|
Is it possible to use something like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
It is hardcoded. Eventually you can change it by a plugin with the We have a |
Beta Was this translation helpful? Give feedback.
-
|
My use case is probably not very common - I am rewriting requests in a Cloudflare worker and I need to identify when a request for a Docusaurus asset comes in (/assets is also used by some other requests). |
Beta Was this translation helpful? Give feedback.
It is hardcoded. Eventually you can change it by a plugin with the
configureWebpacklifecycle but it requires modifying out internal config in multiple places (js bundle, CSS bundle, file loader assets...), not so easy.We have a
OUTPUT_STATIC_ASSETS_DIR_NAME = "assets"constant, apparently not even used everywhere. We could use an env variable to init it eventually, but I'd prefer not to unless you have a strong use-case to change that name.