Check out /pages/api/hello.js
.
- A font file is used by a SVG, which is located in
/fonts/inconsolata.ttf
- There is a
fonts/fonts.conf
file specifying where to look for fonts - An env variable is set like so:
FONTCONFIG_PATH=/var/task/.next/server/chunks/fonts/
- The
copy-webpack-plugin
plugin is used and configured innext.config.js
- The
fonts
dir is invercel.json
in theincludeFiles
prop
Upon the font not showing, it puts the following error into the log:
Fontconfig error: Cannot load default config file: No such file: (null)