delinting
This commit is contained in:
parent
de26e3464d
commit
63915f89a3
32
inspiration-repo-agent/opennext-deploy-debug.log
Normal file
32
inspiration-repo-agent/opennext-deploy-debug.log
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
|
||||||
|
ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
|
||||||
|
Γöé OpenNext ΓÇö Cloudflare deploy Γöé
|
||||||
|
ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
|
||||||
|
|
||||||
|
WARN OpenNext is not fully compatible with Windows.
|
||||||
|
WARN For optimal performance, it is recommended to use Windows Subsystem for Linux (WSL).
|
||||||
|
WARN While OpenNext may function on Windows, it could encounter unpredictable failures during runtime.
|
||||||
|
opennextjs-cloudflare deploy
|
||||||
|
|
||||||
|
Deploy a built OpenNext app to Cloudflare Workers
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--help Show help [boolean]
|
||||||
|
--version Show version number [boolean]
|
||||||
|
-c, --config Path to Wrangler configuration file [string]
|
||||||
|
--configPath Path to Wrangler configuration file[deprecated] [string]
|
||||||
|
-e, --env Wrangler environment to use for operations [string]
|
||||||
|
--cacheChunkSize Number of entries per chunk when populating the cache
|
||||||
|
[number]
|
||||||
|
|
||||||
|
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
|
||||||
|
at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:184:11)
|
||||||
|
at defaultLoad (node:internal/modules/esm/load:82:3)
|
||||||
|
at ModuleLoader.load (node:internal/modules/esm/loader:803:12)
|
||||||
|
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:582:43)
|
||||||
|
at #createModuleJob (node:internal/modules/esm/loader:606:36)
|
||||||
|
at #getJobFromResolveResult (node:internal/modules/esm/loader:340:34)
|
||||||
|
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:308:41)
|
||||||
|
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:646:25) {
|
||||||
|
code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
|
||||||
|
}
|
||||||
22639
inspiration-repo-agent/package-lock.json
generated
22639
inspiration-repo-agent/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,17 @@ const WEBHOOK_URL = "https://n8n.biohazardvfx.com/webhook/d2ab4653-a107-412c-a90
|
|||||||
export async function POST(request: NextRequest) {
|
export async function POST(request: NextRequest) {
|
||||||
try {
|
try {
|
||||||
const body = await request.json()
|
const body = await request.json()
|
||||||
const { message, timestamp, sessionId } = body
|
if (typeof body !== "object" || body === null) {
|
||||||
|
return NextResponse.json({ error: "Invalid request body" }, { status: 400 })
|
||||||
|
}
|
||||||
|
const { message, timestamp, sessionId } = body as {
|
||||||
|
message?: string
|
||||||
|
timestamp?: string
|
||||||
|
sessionId?: string
|
||||||
|
}
|
||||||
|
if (!message || typeof message !== "string") {
|
||||||
|
return NextResponse.json({ error: "Message is required" }, { status: 400 })
|
||||||
|
}
|
||||||
|
|
||||||
if (!message) {
|
if (!message) {
|
||||||
return NextResponse.json({ error: "Message is required" }, { status: 400 })
|
return NextResponse.json({ error: "Message is required" }, { status: 400 })
|
||||||
@ -75,7 +85,7 @@ export async function POST(request: NextRequest) {
|
|||||||
if (chunk.type === "item" && chunk.content) {
|
if (chunk.type === "item" && chunk.content) {
|
||||||
chunks.push(chunk.content)
|
chunks.push(chunk.content)
|
||||||
}
|
}
|
||||||
} catch (parseError) {
|
} catch {
|
||||||
console.log("[v0] Failed to parse line:", line)
|
console.log("[v0] Failed to parse line:", line)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -106,7 +116,7 @@ export async function POST(request: NextRequest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return NextResponse.json({ response: responseMessage })
|
return NextResponse.json({ response: responseMessage })
|
||||||
} catch (parseError) {
|
} catch {
|
||||||
console.log("[v0] Response is not JSON, returning as text")
|
console.log("[v0] Response is not JSON, returning as text")
|
||||||
// If not JSON, return the text as the response
|
// If not JSON, return the text as the response
|
||||||
return NextResponse.json({ response: responseText })
|
return NextResponse.json({ response: responseText })
|
||||||
|
|||||||
@ -72,7 +72,12 @@ export function ChatInterface() {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
const data = await response.json()
|
const data = (await response.json()) as {
|
||||||
|
error?: string
|
||||||
|
hint?: string
|
||||||
|
response?: string
|
||||||
|
message?: string
|
||||||
|
}
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
const errorMessage: Message = {
|
const errorMessage: Message = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user