added working create form and useActionState logic #1

Merged
christian merged 6 commits from forms into main 2024-05-25 10:26:39 +00:00
3 changed files with 2 additions and 6 deletions
Showing only changes of commit 39e6d86420 - Show all commits

View File

@ -16,6 +16,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

View File

@ -1,6 +1,7 @@
import { getWines } from "~/server/actions/allWines";
import WineName from "./WineName";
import WineProducer from "./WineProducer";
export const dynamic = "force-dynamic";
const allWines = await getWines();
export default async function WineCards() {

View File

@ -1,10 +1,5 @@
import { Suspense } from "react";
import CreateWine from "./_components/CreateWine";
import WineCards from "./_components/WineCards";
import App from "./_components/App";
export const dynamic = "force-dynamic";
export default async function HomePage() {
return (
<main>