Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
feat(server): remove unused static hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Aug 20, 2024
1 parent 2611bd0 commit f486481
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 933 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "server.js",
"scripts": {
"dev": "ts-node-dev ./src/index.ts",
"build": "tsc -p tsconfig.build.json && cpx src/public/**/* dist/public",
"build": "tsc -p tsconfig.build.json",
"serve": "node ./dist/index.js",
"prettier": "prettier --write . --ignore-path=.gitignore",
"prettier:check": "prettier --check . --ignore-path=.gitignore",
Expand Down Expand Up @@ -72,7 +72,6 @@
"@typescript-eslint/parser": "^7.14.1",
"chai": "^4.4.1",
"chai-as-promised": "^7.1.1",
"cpx": "^1.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand Down
Binary file removed src/public/boklisten_logo_v2_icon_blue.png
Binary file not shown.
Binary file removed src/public/boklisten_logo_v2_icon_white_lg.png
Binary file not shown.
3 changes: 0 additions & 3 deletions src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ export class Server {
private serverStart() {
this.app.set("port", assertEnv(BlEnvironment.PORT));

// eslint-disable-next-line import/no-named-as-default-member
this.app.use(express.static(path.join(__dirname, "../public")));

this.app.listen(this.app.get("port"), () => {
logger.info("blapi is ready to take requests!");
});
Expand Down
Loading

0 comments on commit f486481

Please sign in to comment.