🐛 Add missing build step to dockerfile

This commit is contained in:
2022-05-04 01:55:31 +02:00
parent 6261dbb04c
commit 7a97aed12e
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ RUN npx prisma generate
WORKDIR /app
COPY ./ ./
RUN npm run build
WORKDIR /app/server
CMD ["node", "index.js"]

View File

@ -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}`
);