12 lines
356 B
TypeScript
12 lines
356 B
TypeScript
import { loadEnvConfig } from "@next/env";
|
|
import { defineCliConfig } from "sanity/cli";
|
|
|
|
const dev = process.env.NODE_ENV !== "production";
|
|
loadEnvConfig(__dirname, dev, { info: () => null, error: console.error });
|
|
|
|
export default defineCliConfig({
|
|
api: {
|
|
projectId: `${process.env.NEXT_PUBLIC_SANITY_PROJECT_ID}`,
|
|
dataset: "production"
|
|
}
|
|
});
|