Skip to content

Commit

Permalink
fix: vercel not working
Browse files Browse the repository at this point in the history
  • Loading branch information
syfxlin committed Dec 23, 2023
1 parent d494353 commit f393f31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/contents/reader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fs from "fs-extra";
import path from "path";
import config from "../../keystatic.config";
import { createReader } from "@keystatic/core/reader";

export const reader = createReader(fs.pathExistsSync("public") ? "." : "../", config);
export const root = path.resolve("public");

export const reader = createReader(".", config);

0 comments on commit f393f31

Please sign in to comment.