2024-09-07 19:17:30 +02:00
|
|
|
import { loadEnvConfig } from "@next/env";
|
2024-09-07 14:59:43 +02:00
|
|
|
import { defineCliConfig } from "sanity/cli";
|
|
|
|
|
2024-09-07 19:17:30 +02:00
|
|
|
const dev = process.env.NODE_ENV !== "production";
|
|
|
|
loadEnvConfig(__dirname, dev, { info: () => null, error: console.error });
|
|
|
|
|
2024-09-07 14:59:43 +02:00
|
|
|
export default defineCliConfig({
|
|
|
|
api: {
|
|
|
|
projectId: `${process.env.NEXT_PUBLIC_SANITY_PROJECT_ID}`,
|
|
|
|
dataset: "production"
|
|
|
|
}
|
|
|
|
});
|