diff --git a/bun.lockb b/bun.lockb index 55eb8f1..96a7115 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/recipe/index.vue b/components/recipe/index.vue index bc1e15f..f699c68 100644 --- a/components/recipe/index.vue +++ b/components/recipe/index.vue @@ -23,12 +23,12 @@ defineProps<{ recipe: Recipe }>(); - +

Instructions

-
+

{{ recipe.instructions }} -

+

diff --git a/components/recipe/ingredients.vue b/components/recipe/ingredients.vue index bf8717c..c2c48e0 100644 --- a/components/recipe/ingredients.vue +++ b/components/recipe/ingredients.vue @@ -1,6 +1,6 @@ diff --git a/nuxt.config.ts b/nuxt.config.ts index 57902d2..f8401bc 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,24 +1,38 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ devtools: { enabled: true }, + + modules: ["@nuxt/eslint", "@nuxt/image", "nuxt-icon", "nuxt-delay-hydration"], + build: { transpile: ["trpc-nuxt"], }, + css: ["~/assets/css/main.css"], + image: { domains: ["www.themealdb.com"], }, - modules: ["@nuxt/eslint", "@nuxt/image", "nuxt-icon"], + + delayHydration: { + mode: "init", + // enables nuxt-delay-hydration in dev mode for testing + debug: process.env.NODE_ENV === "development", + }, postcss: { plugins: { tailwindcss: {}, autoprefixer: {}, }, }, + runtimeConfig: { // The private keys which are only available server-side apiUrl: "", // Keys within public are also exposed client-side }, + ssr: true, + compatibilityDate: "2024-12-13", }); + diff --git a/package.json b/package.json index 4cdc969..c97b95d 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@nuxt/image": "^1.6.0", "@trpc/client": "^10.45.2", "@trpc/server": "^10.45.2", - "nuxt": "^3.11.2", + "nuxt": "^3.14.1592", "nuxt-icon": "^0.6.10", "trpc-nuxt": "^0.10.22", "vue": "^3.4.21", @@ -28,6 +28,7 @@ "@tailwindcss/typography": "^0.5.13", "autoprefixer": "^10.4.19", "daisyui": "^4.10.2", + "nuxt-delay-hydration": "^1.3.8", "postcss": "^8.4.38", "prettier": "3.2.5", "prettier-plugin-tailwindcss": "^0.5.14", diff --git a/pages/[id].vue b/pages/[id].vue index 92570be..b3866a1 100644 --- a/pages/[id].vue +++ b/pages/[id].vue @@ -1,11 +1,24 @@