Skip to content

Commit

Permalink
Fix rootDirectory references for cron redeployment (#291)
Browse files Browse the repository at this point in the history
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: ben <ben@prologe.io>
  • Loading branch information
1 parent 84331d1 commit 93ef8ee
Show file tree
Hide file tree
Showing 6 changed files with 7,753 additions and 6,283 deletions.
2 changes: 1 addition & 1 deletion packages/plugin/views/ai-chat/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { MessageRenderer } from "./message-renderer";
import ToolInvocationHandler from "./tool-handlers/tool-invocation-handler";
import { convertToCoreMessages, streamText, ToolInvocation } from "ai";
import { ollama } from "ollama-ai-provider";
import { getChatSystemPrompt } from "../../../web/lib/prompts/chat-prompt";
import { getChatSystemPrompt } from "../../../packages/web/lib/prompts/chat-prompt";
import { ContextLimitIndicator } from "./context-limit-indicator";
import { ModelSelector } from "./model-selector";
import { ModelType } from "./types";
Expand Down
4 changes: 2 additions & 2 deletions packages/web/app/api/cron/redeploy/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function GET(request: Request) {
buildCommand: "pnpm build:self-host",
installCommand: "pnpm install",
outputDirectory: ".next",
rootDirectory: "web",
rootDirectory: "packages/web",
},
},
});
Expand Down Expand Up @@ -95,4 +95,4 @@ export async function GET(request: Request) {
console.error("Error in redeploy cron:", error);
return NextResponse.json({ error: "Internal Server Error" }, { status: 500 });
}
}
}
4 changes: 2 additions & 2 deletions packages/web/app/api/redeploy/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function POST() {
buildCommand: "pnpm build:self-host",
installCommand: "pnpm install",
outputDirectory: ".next",
rootDirectory: "web",
rootDirectory: "packages/web",
},
},
});
Expand All @@ -71,4 +71,4 @@ export async function POST() {
{ status: 500 }
);
}
}
}
4 changes: 2 additions & 2 deletions packages/web/app/dashboard/lifetime/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function setupProject(
const createProjectResponse = await vercel.projects.createProject({
requestBody: {
name: uniqueProjectName,
rootDirectory: "web",
rootDirectory: "packages/web",
publicSource: true,
framework: "nextjs",
buildCommand: "pnpm build:self-host",
Expand Down Expand Up @@ -120,7 +120,7 @@ export async function setupProject(
buildCommand: "pnpm build:self-host",
installCommand: "pnpm install",
outputDirectory: ".next",
rootDirectory: "web",
rootDirectory: "packages/web",
},
},
});
Expand Down
Loading

0 comments on commit 93ef8ee

Please sign in to comment.