🧱 Using RoadSign instead of Vercel to deploy

This commit is contained in:
LittleSheep 2025-01-14 18:39:25 +08:00
parent e6822c0009
commit 45dd0ebcb9
4 changed files with 30 additions and 0 deletions

13
.roadsignrc Normal file
View File

@ -0,0 +1,13 @@
{
"sync": {
"region": "capital",
"configPath": "roadsign.toml"
},
"deployments": [
{
"region": "capital",
"site": "capital-app",
"path": ".next"
}
]
}

View File

@ -3,6 +3,7 @@ import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
/* config options here */
reactStrictMode: true,
output: 'standalone',
generateBuildId: async () => {
return process.env.GIT_HASH ?? 'development'
},

View File

@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"build-standalone": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone",
"start": "next start",
"lint": "next lint"
},

15
roadsign.toml Normal file
View File

@ -0,0 +1,15 @@
id = "capital"
[[locations]]
id = "capital"
hosts = ["solsynth.dev", "www.solsynth.dev"]
paths = ["/"]
[[locations.destinations]]
id = "capital-destination"
uri = "http://localhost:3000"
[[applications]]
id = "capital-app"
workdir = "/workdir/capital"
command = ["node", "standalone/server.js"]
environment = ["HOSTNAME=0.0.0.0"]