The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Force 404 on static folder when a file is not found (#1165)
Charles Bocheta12b6c4bdaa7
diff --git a/infra/prod/front/Dockerfile b/infra/prod/front/Dockerfileindex d5f353d8446..28b9ccc3b26 100644--- a/infra/prod/front/Dockerfile+++ b/infra/prod/front/Dockerfile@@ -13,6 +13,8 @@ COPY ./front .RUN yarn installRUN yarn build+COPY ./infra/prod/front/serve.json ./build+FROM node:18.16.0-alpine as frontWORKDIR /app/front@@ -20,4 +22,4 @@ COPY --from=build /app/front/build ./buildRUN yarn global add serve-CMD ["serve", "-s", "build"]+CMD ["serve", "build"]diff --git a/infra/prod/front/serve.json b/infra/prod/front/serve.jsonnew file mode 100644index 00000000000..cd8879807d9--- /dev/null+++ b/infra/prod/front/serve.json@@ -0,0 +1,6 @@+{+ "rewrites": [+ { "source": "!static/**", "destination": "/index.html" }+ ],+ "directoryListing": false+}\ No newline at end of file