Skip to content

Commit 84093c3

Browse files
committed
Add railway deployment addon
1 parent 36aa69d commit 84093c3

7 files changed

Lines changed: 144 additions & 13 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[phases.setup]
2+
nixPkgs = ["nodejs_22"]
3+
4+
[phases.build]
5+
cmds = ["npm install", "npm run build"]
6+
7+
[start]
8+
cmd = "npm run start"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "Railway",
3+
"description": "Railway deployment setup",
4+
"link": "https://railway.com/",
5+
"phase": "add-on",
6+
"modes": ["file-router", "code-router"],
7+
"type": "deployment",
8+
"category": "deploy",
9+
"exclusive": ["deploy"],
10+
"color": "#9B4DCA",
11+
"priority": 160,
12+
"tailwind": false,
13+
"integrations": [
14+
{
15+
"type": "vite-plugin",
16+
"import": "import { nitro } from 'nitro/vite'",
17+
"code": "nitro()"
18+
}
19+
]
20+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"scripts": {
3+
"start": "node .output/server/index.mjs"
4+
},
5+
"dependencies": {
6+
"nitro": "npm:nitro-nightly@latest"
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[phases.setup]
2+
nixPkgs = ["nodejs_22"]
3+
4+
[phases.build]
5+
cmds = ["npm install", "npm run build"]
6+
7+
[start]
8+
cmd = "npm run start"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "Railway",
3+
"description": "Railway deployment setup",
4+
"link": "https://railway.com/",
5+
"phase": "add-on",
6+
"modes": ["file-router", "code-router"],
7+
"type": "deployment",
8+
"category": "deploy",
9+
"exclusive": ["deploy"],
10+
"color": "#9B4DCA",
11+
"priority": 160,
12+
"tailwind": false,
13+
"integrations": [
14+
{
15+
"type": "vite-plugin",
16+
"import": "import { nitro } from 'nitro/vite'",
17+
"code": "nitro()"
18+
}
19+
]
20+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"scripts": {
3+
"start": "node .output/server/index.mjs"
4+
},
5+
"dependencies": {
6+
"nitro": "npm:nitro-nightly@latest"
7+
}
8+
}

pnpm-lock.yaml

Lines changed: 72 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)