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

