diff --git a/.roadsignrc b/.roadsignrc new file mode 100644 index 0000000..bce581b --- /dev/null +++ b/.roadsignrc @@ -0,0 +1,13 @@ +{ + "sync": { + "region": "capital", + "configPath": "roadsign.toml" + }, + "deployments": [ + { + "region": "capital", + "site": "capital-app", + "path": ".next" + } + ] +} diff --git a/next.config.ts b/next.config.ts index 166505b..6b7b71f 100644 --- a/next.config.ts +++ b/next.config.ts @@ -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' }, diff --git a/package.json b/package.json index 85f9a97..9063c98 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/roadsign.toml b/roadsign.toml new file mode 100644 index 0000000..6e9ca18 --- /dev/null +++ b/roadsign.toml @@ -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"]