added working create form and useActionState logic #1
@ -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 }}
 | 
			
		||||
 | 
			
		||||
@ -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() {
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user