mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-01 18:31:35 +00:00
Hopefully support Heroku
This commit is contained in:
parent
138145fa05
commit
6c48bc9d60
4 changed files with 10 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ const constants = require("../lib/constants")
|
|||
const passthrough = require("./passthrough")
|
||||
|
||||
const pinski = new Pinski({
|
||||
port: constants.port,
|
||||
port: +process.env.PORT || constants.port,
|
||||
relativeRoot: __dirname
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const constants = require("../lib/constants")
|
|||
const passthrough = require("./passthrough")
|
||||
|
||||
const pinski = new Pinski({
|
||||
port: constants.port,
|
||||
port: +process.env.PORT || constants.port,
|
||||
relativeRoot: __dirname,
|
||||
basicCacheControl: {
|
||||
exts: ["ttf", "woff2", "png", "jpg", "jpeg", "svg", "gif", "webmanifest", "ico"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue