mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
(cards) fix usage of useRuntimeConfig outside of Nitro
This commit is contained in:
parent
162a77f23e
commit
47162ce7b7
@ -12,13 +12,13 @@ import type { Database } from './db.ts';
|
|||||||
import isHighLoadTime from './overload.js';
|
import isHighLoadTime from './overload.js';
|
||||||
|
|
||||||
import jwt from '~/server/jwt.ts';
|
import jwt from '~/server/jwt.ts';
|
||||||
import { getUrlsForAllLocales } from '~/src/domain.ts';
|
import { getLocaleUrls } from '~/src/domain.ts';
|
||||||
|
|
||||||
const s3 = new S3(awsConfig);
|
const s3 = new S3(awsConfig);
|
||||||
|
|
||||||
const urlBases: Record<string, string> = {};
|
const urlBases: Record<string, string> = {};
|
||||||
|
|
||||||
for (const [locale, url] of Object.entries(getUrlsForAllLocales('_', true))) {
|
for (const [locale, url] of Object.entries(getLocaleUrls(process.env.NUXT_PUBLIC_DOMAIN_BASE))) {
|
||||||
urlBases[locale] = `${url}/card/@`;
|
urlBases[locale] = `${url}/card/@`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user