From 7ccd7e5b8cabcd66e4dbcbf632ab7b8ca0208f52 Mon Sep 17 00:00:00 2001 From: christian Date: Sat, 27 Apr 2024 19:17:49 +0200 Subject: [PATCH] updated workkflow and implemented sanity --- .gitea/workflows/node-build.yaml | 5 ++++- src/routes/learnings/+page.svelte | 29 ++++++++++++++++++++++++++++- src/utils/sanity/client.js | 9 +++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 src/utils/sanity/client.js diff --git a/.gitea/workflows/node-build.yaml b/.gitea/workflows/node-build.yaml index fc33453..20bf153 100644 --- a/.gitea/workflows/node-build.yaml +++ b/.gitea/workflows/node-build.yaml @@ -1,5 +1,8 @@ name: Node.js CI -on: [push] +on: + push: + branches: + - 'main' jobs: build_app: diff --git a/src/routes/learnings/+page.svelte b/src/routes/learnings/+page.svelte index 167a581..f33d5e5 100644 --- a/src/routes/learnings/+page.svelte +++ b/src/routes/learnings/+page.svelte @@ -1 +1,28 @@ -

Blog style learnings description.

\ No newline at end of file + +

{posts.title}

\ No newline at end of file diff --git a/src/utils/sanity/client.js b/src/utils/sanity/client.js new file mode 100644 index 0000000..b92c817 --- /dev/null +++ b/src/utils/sanity/client.js @@ -0,0 +1,9 @@ +import { createClient } from "@sanity/client" + +export const client = createClient({ + projectId: "f4465sc9", + dataset: "production", + apiVersion: "2024-03-11", + // Set to `true` for production environments + useCdn: false, +}) \ No newline at end of file