diff --git a/Dockerfile b/Dockerfile index 4c40528..5594677 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN npx prisma generate WORKDIR /app COPY ./ ./ +RUN npm run build WORKDIR /app/server CMD ["node", "index.js"] \ No newline at end of file diff --git a/src/store.js b/src/store.js index be5f468..23cf14d 100644 --- a/src/store.js +++ b/src/store.js @@ -61,7 +61,7 @@ export const parsedTimetable = computed(() => { }); export async function fetchData() { - const baseUrl = "http://localhost:3000/api"; + const baseUrl = "/api"; const timetableResponse = await fetch( `${baseUrl}/timetable?class=${timetableClass.value}` );