mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
* refactor(tooling): group remaining scripts by concrete domain owners * fix(tooling): preserve relocated launcher resource roots
15 lines
455 B
JavaScript
15 lines
455 B
JavaScript
import { readFile } from 'node:fs/promises'
|
|
import { resolve } from 'node:path'
|
|
|
|
const indexPath = resolve('out/web/web-index.html')
|
|
const html = await readFile(indexPath, 'utf8')
|
|
|
|
const absoluteAssetReference = /\b(?:src|href)=["']\/assets\//.exec(html)
|
|
|
|
if (absoluteAssetReference) {
|
|
console.error(
|
|
`Web build must use relative asset URLs for reverse-proxy pairing URLs; found ${absoluteAssetReference[0]} in ${indexPath}`
|
|
)
|
|
process.exit(1)
|
|
}
|