diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..1884afc --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,10 @@ +[variables] +NODE_ENV = "production" +HOST = "0.0.0.0" +PORT = "4321" + +[phases.setup] +nixPkgs = ["nodejs_20"] + +[start] +cmd = "node ./dist/server/entry.mjs" diff --git a/package.json b/package.json index a6fffa7..14031d0 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "astro dev", "build": "astro build", + "start": "node ./dist/server/entry.mjs", "preview": "astro preview", "check": "astro check" },