Fix unfurler resources build

This commit is contained in:
Mononaut
2024-05-09 15:50:43 +00:00
parent 9b83ac29b7
commit eeb2bae9f3
12 changed files with 9 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
"main": "index.ts",
"scripts": {
"tsc": "./node_modules/typescript/bin/tsc",
"build": "npm run tsc && cp -r src/resources dist/resources",
"build": "npm run tsc && rsync -av ../frontend/dist/mempool/browser/resources dist/",
"start": "node --max-old-space-size=2048 dist/index.js",
"unfurler": "node --max-old-space-size=4096 dist/index.js",
"lint": "./node_modules/.bin/eslint . --ext .ts",

View File

@@ -1 +0,0 @@
../../frontend/src/resources

View File

@@ -254,7 +254,7 @@ const networks = {
routes: {} // no routes supported
},
onbtc: {
fallbackImg: '/resources/sv/onbtc-preview.jpg',
fallbackImg: '/resources/onbtc/onbtc-preview.jpg',
routes: { // only dynamic routes supported
block: routes.block,
address: routes.address,