Skip to content

Commit

Permalink
fix: remove hardcoded action.parabol.co from the application code (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelromcar-parabol authored Feb 10, 2025
1 parent d100928 commit 77e63fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/server/createSSR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const createSSR = (res: HttpResponse, req: HttpRequest) => {
const demoMatch = url.match(/\/retrospective-demo\/(reflect|vote|group)/)

if (demoMatch) {
res.writeHeader('Link', '<https://action.parabol.co/retrospective-demo>; rel="canonical"')
res.writeHeader('Link', `<https://${process.env.HOST}/retrospective-demo>; rel="canonical"`)
}
res.writeHeader('content-type', 'text/html; charset=utf-8')
// no need for eTag since file is < 1 MTU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type MeetingLookup = Record<string, string | Date>
const meetingLookup: MeetingLookup = {}

const processLines = (lines: string[]): string[] => {
const meetingURL = 'https://action.parabol.co/meet/'
const meetingURL = `https://${process.env.HOST}/meet/`
return lines
.map((line) => {
if (line.includes(meetingURL)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/server/utils/OpenAIServerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class OpenAIServerManager {
userPrompt?: string | null
): Promise<InsightResponse | null> {
if (!this.openAIApi) return null
const meetingURL = 'https://action.parabol.co/meet/[meetingId]'
const meetingURL = `https://${process.env.HOST}/meet/[meetingId]`
const promptForMeetingData = `
You are a Team Lead and want to use your meeting data to help write a report on your team's performance. You care about team productivity, morale, roadblocks, relationships, and progress against goals. Below is a list of retrospective meeting summaries (in YAML format) from the past several months.
Expand Down Expand Up @@ -376,7 +376,7 @@ Return the analysis as a JSON object with this structure:

async generateSummary(yamlData: string, userPrompt?: string | null): Promise<string | null> {
if (!this.openAIApi) return null
const meetingURL = 'https://action.parabol.co/meet/'
const meetingURL = `https://${process.env.HOST}/meet`
const defaultPrompt = `
You need to summarize the content of a meeting. Your summary must be one paragraph with no more than a two or three sentences.
Below is a list of reflection topics and comments in YAML format from the meeting.
Expand Down

0 comments on commit 77e63fe

Please sign in to comment.