Skip to content

Commit

Permalink
Bounce?
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Mar 7, 2024
1 parent b3a03e8 commit a2347ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ yarn-error.log*
# Misc
.DS_Store
*.pem

# Local Netlify folder
.netlify
4 changes: 2 additions & 2 deletions apps/static-site/src/iiif.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// @ts-nocheck
import { create } from "iiif-hss/node-client";
import { join } from "node:path";
import { cwd } from "process";
import { cwd, env } from "process";
import { readFile } from "fs/promises";
import { Database, open } from "sqlite";
import sqlite3 from "sqlite3";
import { Collection } from "@iiif/presentation-3";

const iiifPath = join(cwd(), "public/iiif");
const iiifPath = join(cwd(), env["NEXT_RUNTIME"] === "true" ? "iiif" : "public/iiif");

export const client = create(iiifPath);

Expand Down

0 comments on commit a2347ba

Please sign in to comment.