Compare commits

..

2 Commits

Author SHA1 Message Date
4682aa000f ♻️ Remove vercel stuff 2025-01-14 18:45:34 +08:00
45dd0ebcb9 🧱 Using RoadSign instead of Vercel to deploy 2025-01-14 18:39:25 +08:00
5 changed files with 30 additions and 3 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 = { 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'
}, },

View File

@ -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"
}, },
@ -20,7 +21,6 @@
"@mui/x-charts": "^7.23.6", "@mui/x-charts": "^7.23.6",
"@tailwindcss/typography": "^0.5.16", "@tailwindcss/typography": "^0.5.16",
"@toolpad/core": "^0.11.0", "@toolpad/core": "^0.11.0",
"@vercel/speed-insights": "^1.1.0",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"axios": "^1.7.9", "axios": "^1.7.9",
"axios-case-converter": "^1.1.1", "axios-case-converter": "^1.1.1",

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"]

View File

@ -4,7 +4,6 @@ import {
DocumentHeadTagsProps, DocumentHeadTagsProps,
documentGetInitialProps, documentGetInitialProps,
} from '@mui/material-nextjs/v15-pagesRouter' } from '@mui/material-nextjs/v15-pagesRouter'
import { SpeedInsights } from '@vercel/speed-insights/next'
import { Html, Head, Main, NextScript, DocumentContext, DocumentProps } from 'next/document' import { Html, Head, Main, NextScript, DocumentContext, DocumentProps } from 'next/document'
export default function Document(props: DocumentProps & DocumentHeadTagsProps) { export default function Document(props: DocumentProps & DocumentHeadTagsProps) {
@ -17,7 +16,6 @@ export default function Document(props: DocumentProps & DocumentHeadTagsProps) {
<body className="antialiased"> <body className="antialiased">
<Main /> <Main />
<NextScript /> <NextScript />
<SpeedInsights />
</body> </body>
</Html> </Html>
</AppCacheProvider> </AppCacheProvider>