Skip to content

Commit

Permalink
feature: keystatic to bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
syfxlin committed Oct 5, 2023
1 parent 01a7801 commit 0cb874c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions content/generate.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-ignore
process.env.NODE_ENV = "development";
import fs from "fs-extra";
import path from "path";
import { reader } from "../src/contents/reader";
import config from "../src/keystatic.config";
import { makeReader } from "../src/contents/make-reader.dev";

const reader = makeReader(config);

fs.outputJsonSync(path.join(process.cwd(), "content", "generated.json"), {
collections: Object.fromEntries(
Expand Down

0 comments on commit 0cb874c

Please sign in to comment.