cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Preventing downloads of webfonts on SAP Commerce Cloud 1905 with Spartacus

419

Hello everyone,

We have a SAP Commerce Cloud solution with spartacus based on 1905 and want to install a licensed webfont.

The problem is, that the font provider wants us to prohibit people from downloading their font from our shop.

I was googling and found out, that it is easy to do this with an apache, but there is no apache on the cloud environment.

Is there a way to get this issue solved?

Cheers,

Serdar

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member624092
Participant
0 Likes

If you want to host your own font files, add them to src/assets folder. This folder is being copied at build into the Spartacus client build.
Make sure that you also add your font definition in your src/styles.scss by pointint to /assets/font-name.ttf in your css definition