wip: moved the content loader

This commit is contained in:
2024-05-30 11:51:21 +10:00
parent ff6886e309
commit 1340f2029a
5 changed files with 139 additions and 120 deletions

View File

@@ -1,3 +1,11 @@
export function getAssetsDomain(): string {
if (typeof process.env.ASSETS_DOMAIN === 'undefined') {
throw new Error("missing env ASSETS_DOMAIN");
}
return process.env.ASSETS_DOMAIN;
}
export function getMysqlHost(): string {
if (typeof process.env.MYSQL_HOST === 'undefined') {
throw new Error("missing env MYSQL_HOST")