Skip to content

Commit f100e50

Browse files
committed
fix: hard coded localhost
1 parent d3d2a5d commit f100e50

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

codegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CodegenConfig } from '@graphql-codegen/cli';
22

33
const config: CodegenConfig = {
4-
schema: 'http://localhost:8080/query',
4+
schema: env.PLEXAMS_SERVER,
55
// documents: ['src/**/*.graphql'],
66
generates: {
77
'./src/lib/__generated__/graphql.ts': {

src/routes/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function load({ params }) {
2323
}
2424
`;
2525

26-
const workflowData = await request('http://localhost:8080/query', workflowQuery);
26+
const workflowData = await request(env.PLEXAMS_SERVER, workflowQuery);
2727

2828
return {
2929
semester: semesterData.semester.id,

src/routes/plan/examGroups/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export async function load({ params }) {
103103
}
104104
`;
105105

106-
const data = await request('http://localhost:8080/query', examGroupsWithoutSlotQuery);
106+
const data = await request(env.PLEXAMS_SERVER, examGroupsWithoutSlotQuery);
107107

108108
return {
109109
semesterConfig: semesterData.semesterConfig,

src/routes/plan/exams/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export async function load({ params }) {
126126
}
127127
`;
128128

129-
const data = await request('http://localhost:8080/query', examsWithoutSlotQuery);
129+
const data = await request(env.PLEXAMS_SERVER, examsWithoutSlotQuery);
130130

131131
let semesterConfig = semesterData.semesterConfig;
132132

File renamed without changes.

0 commit comments

Comments
 (0)