Skip to content

Commit

Permalink
Merge pull request #132 from coronasafe/sainak/fix/static-file-path
Browse files Browse the repository at this point in the history
fix static file path
  • Loading branch information
khavinshankar authored Jun 3, 2024
2 parents d47cffd + c0e4d86 commit 808368f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 152 deletions.
144 changes: 0 additions & 144 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"uuid": "^9.0.1"
},
"scripts": {
"copy-assets": "node tools/copyAssets.js",
"copy-assets": "cp -r src/views src/public dist/.",
"build": "prisma generate && tsc && tsc-alias && npm run copy-assets",
"dev": "nodemon",
"debug": "nodemon --inspect",
Expand Down Expand Up @@ -76,7 +76,6 @@
"nodemon": "^2.0.19",
"prettier": "^3.2.5",
"prisma": "^5.9.1",
"shelljs": "^0.8.5",
"ts-node": "^10.9.1",
"tsc-alias": "^1.8.8",
"tsconfig-paths": "^4.2.0",
Expand All @@ -86,4 +85,4 @@
"engines": {
"node": ">=20.0.0"
}
}
}
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function initServer() {

app.set("view engine", "ejs");
app.set("views", path.resolve(__dirname, "views"));
app.use(express.static(path.join(path.resolve(), "src/public")));
app.use(express.static(path.resolve(__dirname, "public")));

app.use(cookieParser());

Expand Down
4 changes: 0 additions & 4 deletions tools/copyAssets.js

This file was deleted.

0 comments on commit 808368f

Please sign in to comment.