We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e73ae commit b6305a1Copy full SHA for b6305a1
nixpacks.toml
@@ -0,0 +1,17 @@
1
+[phases.setup]
2
+nixPkgs = ['nodejs_20', 'pnpm-9_x']
3
+
4
+[phases.install]
5
+cmds = ['pnpm i --frozen-lockfile']
6
7
+[phases.build]
8
+cmds = ['pnpm run build']
9
10
+[start]
11
+cmd = 'node build/index.js'
12
13
+[healthcheck]
14
+cmd = 'curl -f http://localhost:3001/health'
15
+interval = '10s'
16
+timeout = '5s'
17
+retries = 3
src/routes/health/+server.ts
@@ -0,0 +1,5 @@
+import type { RequestHandler } from '@sveltejs/kit';
+export const GET: RequestHandler = async () => {
+ return new Response('OK', { status: 200 });
+};
0 commit comments