diff options
author | Alan Pearce | 2023-09-18 11:34:52 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-18 11:34:52 +0200 |
commit | fac8d24f1e611224ca6650b03cf0230a7adc6111 (patch) | |
tree | dda24def3ee6fc43a3e4903fbffca1cc86a47637 /src/app.ts | |
parent | 602f249c2cfac0e7b6613fb63f5fb519aa1ca952 (diff) | |
download | website-fac8d24f1e611224ca6650b03cf0230a7adc6111.tar.lz website-fac8d24f1e611224ca6650b03cf0230a7adc6111.tar.zst website-fac8d24f1e611224ca6650b03cf0230a7adc6111.zip |
Reduce code to only work with $PWD
Diffstat (limited to 'src/app.ts')
-rw-r--r-- | src/app.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app.ts b/src/app.ts index b41de44..727ec2f 100644 --- a/src/app.ts +++ b/src/app.ts @@ -11,10 +11,9 @@ Sentry.init({ tracesSampleRate: 1.0, }); -const base = "."; -const publicDir = path.resolve(base, "public") + path.sep; +const publicDir = "public" + path.sep; -const config = readConfig(base); +const config = readConfig(); const defaultHeaders = { ...config.extra.headers, vary: "Accept-Encoding", |