-
Hi Johannes, I'm not familiar with typescript, that's why may be I wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I assume you're refering to this piece of code in Lines 48 to 52 in 1ebc08e This is just a default value for the address where the backend API is located (for generating the cover page and for the server-based fallback). You can simply override this by setting the For example, to use
The resulting build in The default values if the environment variable is not set is as follows:
|
Beta Was this translation helpful? Give feedback.
I assume you're refering to this piece of code in
pdiiif-web/src/main.ts
?pdiiif/pdiiif-web/src/main.ts
Lines 48 to 52 in 1ebc08e
This is just a default value for the address where the backend API is located (for generating the cover page and for the server-based fallback). You can simply override this by setting the
PDIIIF_API_ENDPOINT
environment variable during the build (import.meta.env
is resolved at build time, see the vite docs here).For example, to use
https://example.com/pdiiif/api
as the backend l…