Skip to content

Commit

Permalink
Remove duplicate sending of index file in production
Browse files Browse the repository at this point in the history
  • Loading branch information
floscher committed May 4, 2023
1 parent ac40333 commit 9828da1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docker/compose/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ DATABASE_NAME=fublog
# Your OpenAI API key `sk-…`
OPENAI_API_KEY=

SERVER_IMPRINT_LABEL=Datenschutz & Impressum
SERVER_IMPRINT_URL=https://fumix.de/datenschutz
SERVER_GITHUB_REPOSITORY_SLUG=fumix/fublog
SERVER_MAIN_WEBSITE_LABEL=Website
SERVER_MAIN_WEBSITE_URL=https://fumix.de
APP_IMPRINT_LABEL=Datenschutz & Impressum
APP_IMPRINT_URL=https://fumix.de/datenschutz
APP_GITHUB_REPOSITORY_SLUG=fumix/fublog
APP_MAIN_WEBSITE_LABEL=Website
APP_MAIN_WEBSITE_URL=https://fumix.de

## Google OAuth
# OAUTH_GOOGLE_CLIENT_ID=
Expand Down
1 change: 0 additions & 1 deletion server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ if (AppSettings.IS_PRODUCTION) {
}
},
);
res.sendFile(path.join(__dirname, "public/index.html"));
};
app.get("/index.html", indexResponse);
app.use(express.static("./public", { redirect: false, index: false }));
Expand Down

0 comments on commit 9828da1

Please sign in to comment.