diff --git a/Dockerfile b/Dockerfile index b75457d2..8ceabd01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,8 @@ ENV CYPRESS_INSTALL_BINARY=0 ENV PNPM_HOME=/usr/local/share/pnpm ENV PATH="$PNPM_HOME:$PATH" +ENV VITE_APP_GNOCCHI_ORIGIN=https://gnocchi.biscuits.club + FROM base as dev COPY ./pnpm-lock.yaml . RUN pnpm fetch diff --git a/apps/gnocchi/hub/src/App.tsx b/apps/gnocchi/hub/src/App.tsx index 4b918673..aa82d8cf 100644 --- a/apps/gnocchi/hub/src/App.tsx +++ b/apps/gnocchi/hub/src/App.tsx @@ -41,7 +41,7 @@ export function App({
{data.mainImageUrl && ( @@ -56,6 +56,7 @@ export function App({

+ {data.note && {data.note}} {data.prelude && (
diff --git a/apps/gnocchi/hub/src/components/MainImage.tsx b/apps/gnocchi/hub/src/components/MainImage.tsx index 9c57e8eb..3f4f1624 100644 --- a/apps/gnocchi/hub/src/components/MainImage.tsx +++ b/apps/gnocchi/hub/src/components/MainImage.tsx @@ -11,7 +11,7 @@ export function MainImage({ url, title }: MainImageProps) { {`A diff --git a/apps/gnocchi/hub/src/types.ts b/apps/gnocchi/hub/src/types.ts index 729e0d6b..fd761775 100644 --- a/apps/gnocchi/hub/src/types.ts +++ b/apps/gnocchi/hub/src/types.ts @@ -8,4 +8,5 @@ export interface HubRecipeData { publisher: { fullName: string; }; + note?: string; } diff --git a/server/src/routers/gnocchi.ts b/server/src/routers/gnocchi.ts index 0dff4dd2..2c6345b4 100644 --- a/server/src/routers/gnocchi.ts +++ b/server/src/routers/gnocchi.ts @@ -86,6 +86,7 @@ gnocchiRouter.get('/hubRecipe/:planId/:recipeSlug', async (req) => { mainImageUrl: snapshot.mainImage?.url, ingredients: snapshot.ingredients, instructions: snapshot.instructions, + note: snapshot.note, publisher: { fullName: recipe.publisherFullName ?? 'Anonymous', },