Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rootDirectory references for cron redeployment #291

Merged
merged 1 commit into from
Dec 23, 2024
Merged
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
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