diff --git a/Dockerfile b/Dockerfile index 787fc6c..384cfc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,4 +30,4 @@ COPY --from=builder /app/dist /app EXPOSE 5000 -ENTRYPOINT npx prisma migrate deploy && node api/server.js +ENTRYPOINT npx prisma migrate deploy && node server.js diff --git a/src/api/app.ts b/src/api/app.ts index 8aa8923..52ab408 100644 --- a/src/api/app.ts +++ b/src/api/app.ts @@ -9,7 +9,7 @@ const build = async (opts = {}) => { routes.register(app) app.register(staticFiles, { - root: path.join(__dirname, '..', 'static'), + root: path.join(__dirname, 'static'), }) app.setNotFoundHandler((req, res) => { res.sendFile('index.html')