Fix Next.js build errors
Repo: jasonnovack/oneshot
Diff
diff --git a/.gitignore b/.gitignore
index e5dafb9..e4fd681 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,3 +37,4 @@ coverage/
# Drizzle
drizzle/
.claude/
+.env*.local
diff --git a/packages/web/.gitignore b/packages/web/.gitignore
new file mode 100644
index 0000000..c8a7336
--- /dev/null
+++ b/packages/web/.gitignore
@@ -0,0 +1,2 @@
+.vercel
+.env*.local
diff --git a/packages/web/next.config.js b/packages/web/next.config.js
index 6fa0aeb..767719f 100644
--- a/packages/web/next.config.js
+++ b/packages/web/next.config.js
@@ -1,9 +1,4 @@
/** @type {import('next').NextConfig} */
-const nextConfig = {
- // Enable server actions for form handling
- experimental: {
- serverActions: true,
- },
-}
+const nextConfig = {}
module.exports = nextConfig
diff --git a/packages/web/src/app/auth/device/page.tsx b/packages/web/src/app/auth/device/page.tsx
index 44b57d1..2c5c1b4 100644
--- a/packages/web/src/app/auth/device/page.tsx
+++ b/packages/web/src/app/auth/device/page.tsx
@@ -1,10 +1,10 @@
'use client'
-import { useState, useEffect } from 'react'
+import { useState, useEffect, Suspense } from 'react'
import { useSession, signIn } from 'next-auth/react'
import { useSearchParams } from 'next/navigation'
-export default function DeviceAuthPage() {
+function DeviceAuthContent() {
const { data: session, status } = useSession()
const searchParams = useSearchParams()
const [userCode, setUserCode] = useState(searchParams.get('code') || '')
@@ -112,3 +112,16 @@ export default function DeviceAuthPage() {
</div>
)
}
+
+export default function DeviceAuthPage() {
+ return (
+ <Suspense fallback={
+ <div className="device-auth">
+ <h1>Device Authorization</h1>
+ <p>Loading...</p>
+ </div>
+ }>
+ <DeviceAuthContent />
+ </Suspense>
+ )
+}
Recipe
Model
claude-opus-4-5-20251101Harness
Claude Code
Token Usage
Input:
6.1KOutput: 118.3KTotal: 124.5KCache Read: 63.5MPrompt
planning mode
Raw Session Data
Tip: Copy the prompt and adapt it for your own project. The key is understanding why this prompt worked, not reproducing it exactly.
Comments (0)
Sign in to leave a comment
Loading comments...