Home > @lynx-js/rspeedy > Output > assetPrefix
The Output.assetPrefix is used to set the URL prefix for static assets.
Signature:
The functionality of Output.assetPrefix is basically the same as the output.publicPath config in Rspack. With the following differences:
output.assetPrefix only takes effect in the production build.
output.assetPrefix automatically appends a trailing / by default.
The value of output.assetPrefix is written to the process.env.ASSET_PREFIX environment variable.