Skip to content

Commit

Permalink
Update main.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
BlowaterNostr committed Apr 7, 2024
1 parent 4dbc620 commit 32aeca7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import { interface_GetEventsByAuthors } from "./resolvers/event.ts";
import Landing from "./routes/landing.tsx";
import Error404 from "./routes/_404.tsx";
import { RelayInformation, RelayInformationStore } from "./resolvers/nip11.ts";
import { DB } from "https://deno.land/x/sqlite/mod.ts";

// Open a database
const db = new DB("test.db");

const schema = gql.buildSchema(gql.print(typeDefs));

Expand Down

1 comment on commit 32aeca7

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 32aeca7 Apr 7, 2024

Choose a reason for hiding this comment

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

Failed to deploy:

UNCAUGHT_EXCEPTION

PermissionDenied: Requires write access to 'test.db', but the file system on Deno Deploy is read-only.
    at Object.openSync (ext:deno_fs/30_fs.js:620:15)
    at js_open (https://deno.land/x/[email protected]/build/vfs.js:29:24)
    at <anonymous> (wasm://wasm/0028679a:1:5566)
    at <anonymous> (wasm://wasm/0028679a:1:145428)
    at <anonymous> (wasm://wasm/0028679a:1:141310)
    at <anonymous> (wasm://wasm/0028679a:1:147518)
    at <anonymous> (wasm://wasm/0028679a:1:3869)
    at <anonymous> (wasm://wasm/0028679a:1:611986)
    at https://deno.land/x/[email protected]/src/db.ts:72:63
    at setStr (https://deno.land/x/[email protected]/src/wasm.ts:13:20)

Please sign in to comment.