chore: run prettier --write .

This commit is contained in:
Arvid Norlin
2024-02-19 14:24:30 +01:00
parent 7d51124b9f
commit 8a8c463452
71 changed files with 846 additions and 444 deletions

View File

@@ -1,11 +1,11 @@
import "server-only";
import { request as graphqlRequest } from "graphql-request";
import "server-only"
import { request as graphqlRequest } from "graphql-request"
import { env } from "@/env/server";
import { env } from "@/env/server"
import type { Data } from "@/types/request";
import type { DocumentNode } from "graphql";
import ContentstackLivePreview from "@contentstack/live-preview-utils";
import type { Data } from "@/types/request"
import type { DocumentNode } from "graphql"
import ContentstackLivePreview from "@contentstack/live-preview-utils"
export async function previewRequest<T>(
query: string | DocumentNode,
@@ -33,7 +33,7 @@ export async function previewRequest<T>(
return { data: response }
} catch (error) {
console.error(error);
throw new Error("Something went wrong");
console.error(error)
throw new Error("Something went wrong")
}
}