mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: detached cdn branch
This commit is contained in:
1 parent
ed041b78bb
commit
48dcbbc227
43 files changed
+267
-397
No files matched your search
@@ -2,6 +2,7 @@ import sharp from 'sharp';
|
||||
import { readDVPLFile } from '../../src/core/blitz/readDVPLFile';
|
||||
import { commitAssets } from '../../src/core/blitzkit/commitAssets';
|
||||
import { FileChange } from '../../src/core/blitzkit/commitMultipleFiles';
|
||||
import { assertSecrete } from '../../src/core/blitzkit/secrete';
|
||||
import { DATA } from './constants';
|
||||
|
||||
const ICONS = [
|
||||
@@ -21,7 +22,7 @@ type BlitzGlossary = Record<
|
||||
}
|
||||
>;
|
||||
|
||||
export async function currencies(production: boolean) {
|
||||
export async function currencies() {
|
||||
console.log('Building currency icons...');
|
||||
|
||||
const changes: FileChange[] = [];
|
||||
@@ -44,7 +45,7 @@ export async function currencies(production: boolean) {
|
||||
}),
|
||||
);
|
||||
|
||||
const glossary = await fetch(process.env.WOTB_GLOSSARY!).then(
|
||||
const glossary = await fetch(assertSecrete(process.env.WOTB_GLOSSARY)).then(
|
||||
(response) => response.json() as Promise<BlitzGlossary>,
|
||||
);
|
||||
|
||||
@@ -74,5 +75,5 @@ export async function currencies(production: boolean) {
|
||||
}),
|
||||
);
|
||||
|
||||
await commitAssets('currency icons', changes, production);
|
||||
await commitAssets('currency icons', changes);
|
||||
}
|
||||
Reference in new issue
Block a user