🧱 Using RoadSign instead of Vercel to deploy
This commit is contained in:
parent
e6822c0009
commit
45dd0ebcb9
13
.roadsignrc
Normal file
13
.roadsignrc
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"sync": {
|
||||||
|
"region": "capital",
|
||||||
|
"configPath": "roadsign.toml"
|
||||||
|
},
|
||||||
|
"deployments": [
|
||||||
|
{
|
||||||
|
"region": "capital",
|
||||||
|
"site": "capital-app",
|
||||||
|
"path": ".next"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -3,6 +3,7 @@ import type { NextConfig } from 'next'
|
|||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
/* config options here */
|
/* config options here */
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
|
output: 'standalone',
|
||||||
generateBuildId: async () => {
|
generateBuildId: async () => {
|
||||||
return process.env.GIT_HASH ?? 'development'
|
return process.env.GIT_HASH ?? 'development'
|
||||||
},
|
},
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbopack",
|
"dev": "next dev --turbopack",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
|
"build-standalone": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
|
15
roadsign.toml
Normal file
15
roadsign.toml
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user