Skip to content

Commit

Permalink
Merge branch 'main' into fix-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter authored Dec 16, 2024
2 parents 03e8461 + ff573c5 commit 361738e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/api/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { banner as _banner, js, meta } from "@www/tools.ts"
/** API: Minify css */
export default async function (request: Request) {
const headers = new Headers()
const allowed = [new URL(`https://${Deno.env.get("ALLOWED_HOST") || "localhost"}`).hostname]
const allowed = (Deno.env.get("ALLOWED_HOSTS") || "localhost").split(",").map((host) => new URL(`https://${host}`).hostname)
if (Deno.env.has("DENO_DEPLOYMENT_ID")) {
headers.set("x-deno-deployment-id", Deno.env.get("DENO_DEPLOYMENT_ID")!)
allowed.push(new URL(`https://mizu-${Deno.env.get("DENO_DEPLOYMENT_ID")}.deno.dev`).hostname)
Expand Down

1 comment on commit 361738e

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 361738e Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

npm package '@jsr/dprint__formatter' does not exist.

Please sign in to comment.