Pages environment variables not populating SvelteKit

For Workers & Pages, what is the name of the domain?

.

What is the issue or error you’re encountering

Environment Variables that have been added to the project through the web dashboard do not apear during build causing build to fail.

What steps have you taken to resolve the issue?

Attempted both secret and plain text, static and dynamic environment variables in SvelteKit, but no luck