mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: use import.meta.env.
This commit is contained in:
1 parent
d68870c254
commit
c0d16b51de
10 files changed
+18
-18
No files matched your search
@@ -35,9 +35,9 @@ export async function currencies() {
|
||||
}),
|
||||
);
|
||||
|
||||
const glossary = await fetch(assertSecret(process.env.WOTB_GLOSSARY)).then(
|
||||
(response) => response.json() as Promise<BlitzGlossary>,
|
||||
);
|
||||
const glossary = await fetch(
|
||||
assertSecret(import.meta.env.WOTB_GLOSSARY),
|
||||
).then((response) => response.json() as Promise<BlitzGlossary>);
|
||||
|
||||
await Promise.all(
|
||||
Object.entries(glossary)
|
||||
|
||||
@@ -514,7 +514,7 @@ export async function definitions() {
|
||||
|
||||
const wargamingTankopedia = (await fetch(
|
||||
`https://api.wotblitz.com/wotb/encyclopedia/vehicles/?application_id=${assertSecret(
|
||||
process.env.PUBLIC_WARGAMING_APPLICATION_ID,
|
||||
import.meta.env.PUBLIC_WARGAMING_APPLICATION_ID,
|
||||
)}&fields=description`,
|
||||
).then((response) => response.json())) as {
|
||||
data: { [key: number]: { description: null | string } };
|
||||
|
||||
Reference in new issue
Block a user