5 files changed
+57
-5
.github/deploy.yml
+50
new file mode 100644
index 0000000..9331f44
--- /dev/null
+++ b/.github/deploy.yml
@@ -0,0 +1,50 @@
+name: "Deploy Project"
+
+on:
+ push:
+ branches:
+ - main
+env:
+ GIT_USER: ${{ secrets.GIT_USER_SMB }}
+ GIT_HOST: ${{ secrets.GIT_HOST_SMB }}
+ SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY_SMB }}
+ SSH_KNOWN_HOST: ${{ secrets.SSH_KNOWN_HOST_SMB }}
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ lfs: true
+ - name: Setup Node
+ uses: actions/setup-node@v4
+ with:
+ node-version-file: .nvmrc
+ - name: Install pnpm
+ uses: pnpm/action-setup@v4
+ with:
+ version: 9
+ - name: Build for production
+ run: |
+ pnpm install --ignore-scripts
+ pnpm run build
+ - name: Install SSH key
+ uses: shimataro/ssh-key-action@v2
+ with:
+ key: ${{ env.SSH_PRIVATE_KEY }}
+ known_hosts: ${{ env.SSH_KNOWN_HOST }}
+ - name: Upload build
+ run: |
+ rsync -a node_modules ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
+ rsync -a .next ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
+ rsync -a public ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
+ rsync package.json ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
+ rsync pnpm-lock.yaml ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
+ rsync .nvmrc ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
+ shell: bash
+ - name: Deploy!
+ run: |
+ ssh ${{ env.GIT_USER }}@${{ env.GIT_HOST }} 'bash -s' < .smb/deploy.sh apps/ssr/hagerstenstreetcut
+ shell: bash
.nvmrc
+1
new file mode 100644
index 0000000..93a75dd
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+v20.14.0
\ No newline at end of file
.smb/config
+1
index 7dc2ed7..95d261f 100644
--- a/.smb/config
+++ b/.smb/config
@@ -1 +1,2 @@
title = "smbCloud config file"
+project = "Hagersten Street Cut"
\ No newline at end of file
app/layout.tsx
+4
-4
index 9ddb1b9..e018922 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -30,14 +30,14 @@ export default function RootLayout({
</Link>
</nav>
<p className="text-center text-gray-500 mb-8">
- This is a demo of AI-generated summaries of customer reviews. To learn
- more, see the{" "}
+ This is a summary of our customer reviews. To learn
+ more, visit the{" "}
<Link
className="underline"
target="_blank"
- href="https://vercel.com/templates/next.js/customer-reviews-ai-summary-nextjs-vercel"
+ href="https://maps.app.goo.gl/f4irVqGC9KGHzRDP9"
>
- complete template
+ google page
</Link>
.{"\n "}
</p>
components/ai-review-summary.tsx
+1
-1
index 651ffa4..b57ee2f 100644
--- a/components/ai-review-summary.tsx
+++ b/components/ai-review-summary.tsx
@@ -18,7 +18,7 @@ export async function AIReviewSummary({ product }: { product: Product }) {
<Card className="w-full max-w-prose p-10 grid gap-10">
<CardHeader className="items-center space-y-0 gap-4 p-0">
<div className="grid gap-1 text-center">
- <CardTitle className="text-lg">AI Summary</CardTitle>
+ <CardTitle className="text-lg">Review Summary</CardTitle>
<CardDescription className="text-xs">
Based on {product.reviews.length} customer ratings
</CardDescription>