🐛 Add missing build step to dockerfile
This commit is contained in:
@ -12,6 +12,7 @@ RUN npx prisma generate
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
WORKDIR /app/server
|
WORKDIR /app/server
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
@ -61,7 +61,7 @@ export const parsedTimetable = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
export async function fetchData() {
|
export async function fetchData() {
|
||||||
const baseUrl = "http://localhost:3000/api";
|
const baseUrl = "/api";
|
||||||
const timetableResponse = await fetch(
|
const timetableResponse = await fetch(
|
||||||
`${baseUrl}/timetable?class=${timetableClass.value}`
|
`${baseUrl}/timetable?class=${timetableClass.value}`
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user