mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-01 18:31:35 +00:00
Add request quota system
This commit is contained in:
parent
2095be2742
commit
112d9cc90e
17 changed files with 253 additions and 38 deletions
|
|
@ -5,10 +5,15 @@ const fs = require("fs").promises
|
|||
const Jimp = require("jimp")
|
||||
const commands = require("./screenshots/commands")
|
||||
const child_process = require("child_process")
|
||||
const constants = require("../src/lib/constants")
|
||||
|
||||
const browser = "firefox"
|
||||
|
||||
const origin = "http://localhost:10407"
|
||||
const port = 10407 + (+process.env.TAP_CHILD_ID)
|
||||
constants.port = port
|
||||
constants.request_backend = "saved" // predictable request results
|
||||
const origin = `http://localhost:${port}`
|
||||
constants.website_origin = origin
|
||||
|
||||
const dimensions = new Map([
|
||||
["firefox", {
|
||||
|
|
@ -25,9 +30,6 @@ const dimensions = new Map([
|
|||
|
||||
const browserDimensions = dimensions.get(browser)
|
||||
|
||||
const constants = require("../src/lib/constants")
|
||||
constants.request_backend = "saved" // predictable request results
|
||||
|
||||
process.chdir("src/site")
|
||||
const server = require("../src/site/server")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue