Skip to content

Commit

Permalink
lemme see
Browse files Browse the repository at this point in the history
  • Loading branch information
barrybtw committed Jul 26, 2023
1 parent 48b2a0f commit 606ac75
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 33 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"type": "module",
"license": "MIT",
"dependencies": {
"@t3-oss/env-core": "^0.4.0",
"dotenv": "^16.1.4",
"@t3-oss/env-core": "^0.6.0",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"postgres": "^3.3.5",
"zod": "^3.21.4"
},
"devDependencies": {
"@flydotio/dockerfile": "^0.2.14",
"@flydotio/dockerfile": "^0.2.16",
"@types/express": "^4.17.17",
"tsup": "^6.7.0",
"typescript": "^5.1.3"
Expand Down
63 changes: 34 additions & 29 deletions pnpm-lock.yaml

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

4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ const app = express();

import { lib } from '@/lib.js';
import { getPgVersion } from './db.js';
import { env } from './env.js';

const port = process.env.PORT || 3000;

app.get('/', (_req: Request, res: Response) => {
res.send(lib());
const thing = env.ENDPOINT_ID + lib();
res.send(thing);
});

app.listen(port, () => {
Expand Down
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export default defineConfig({
target: 'esnext',
outDir: 'dist',
onSuccess: isDev ? 'node dist/index.js' : undefined,
noExternal: ['*'],
});

0 comments on commit 606ac75

Please sign in to comment.