Skip to content

Commit

Permalink
feat: prep app for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Somto committed Sep 4, 2024
1 parent 19c0d5a commit 6a3a5ff
Show file tree
Hide file tree
Showing 57 changed files with 522 additions and 69 deletions.
6 changes: 3 additions & 3 deletions backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ app.use(morgan("dev"));
router(app);
app.use(errorHandler);
socketIo(io);
if (process.env.NODE_ENV === "production") {
app.use(express.static(path.join(__dirname, "frontend", "build")));
if (process.env.NODE_ENV === "production" ) {
app.use(express.static(path.join(__dirname, "public", "dist")));
app.get("*", (_, res) => {
res.sendFile(path.join(__dirname, "frontend", "build", "index.html"));
res.sendFile(path.join(__dirname, "public", "dist", "index.html"));
});
} else {
app.get("/", (req, res) => {
Expand Down
34 changes: 34 additions & 0 deletions backend/src/public/dist/assets/Chat-9581ceea.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions backend/src/public/dist/assets/Chats-4b82511c.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import{j as t}from"./index-d8866171.js";import{E as e}from"./empty-state-27cd4c62.js";function a(){return t.jsx(e,{})}export{a as default};
1 change: 1 addition & 0 deletions backend/src/public/dist/assets/ChatsRedirect-94e829b3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/src/public/dist/assets/Discover-b210392b.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions backend/src/public/dist/assets/InviteRedirect-d6a691ed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/src/public/dist/assets/Onboarding-9be3fd6d.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/src/public/dist/assets/SignIn-d75c59be.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/src/public/dist/assets/SignUp-7be7bc55.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions backend/src/public/dist/assets/Stars-0242bce2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6a3a5ff

Please sign in to comment.