Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/previewer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ jobs:
with:
node-version-file: "package.json"
cache: pnpm

- name: Configure pnpm for standalone build
# needed when using pnpm, otherwise packages are missing in build output
run: |
echo "node-linker=hoisted" >> .npmrc
echo "shamefully-hoist=true" >> .npmrc
- run: pnpm install --frozen-lockfile

- run: pnpm build
env:
NEXT_BASE_PATH: /${{ env.PREVIEW_ID }}
Expand All @@ -40,3 +47,4 @@ jobs:
path: .next/standalone/
retention-days: 7
if-no-files-found: error
include-hidden-files: true
2 changes: 2 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ export default function Home() {
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
To get started, edit the page.tsx file.
NEW VERSION
</h1>
Comment on lines 18 to 21
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Missing whitespace between text segments.

The added text "NEW VERSION" will render directly adjacent to the previous line without a space, resulting in "To get started, edit the page.tsx file.NEW VERSION". Add proper spacing between the text segments.

💡 Proposed fix options

Option 1: Add explicit space (simple fix)

 <h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
   To get started, edit the page.tsx file.
-  NEW VERSION
+  {" "}NEW VERSION
 </h1>

Option 2: Wrap in a span for better styling control

 <h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
   To get started, edit the page.tsx file.
-  NEW VERSION
+  <span className="ml-2">NEW VERSION</span>
 </h1>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
To get started, edit the page.tsx file.
NEW VERSION
</h1>
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
To get started, edit the page.tsx file.
{" "}NEW VERSION
</h1>
Suggested change
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
To get started, edit the page.tsx file.
NEW VERSION
</h1>
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
To get started, edit the page.tsx file.
<span className="ml-2">NEW VERSION</span>
</h1>
🤖 Prompt for AI Agents
In `@app/page.tsx` around lines 18 - 21, The two text segments inside the h1
element (the existing string "To get started, edit the page.tsx file." and the
inserted "NEW VERSION") lack spacing; update the h1 in app/page.tsx (the <h1
className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black
dark:text-zinc-50"> element) to include spacing between the segments — either
add an explicit space after the first sentence, insert a React space node ({'
'}) between the strings, or wrap "NEW VERSION" in a <span> with a leading space
for styling control so the rendered text reads "...file. NEW VERSION".

<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
Looking for a starting point or more instructions? Head over to{" "}
fix permissions
<a
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
className="font-medium text-zinc-950 dark:text-zinc-50"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"eslint-config-next": "16.1.1",
"tailwindcss": "^4",
"typescript": "^5"
}
},
"packageManager": "pnpm@10.17.1"
}
Loading