Project skeleton: Next.js 15 + TypeScript, standalone output

This commit is contained in:
Grok Bot
2026-11-26 09:10:37 +00:00
commit 2d2c6c55b5
7 changed files with 1309 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# PostgreSQL connection (SPanel injects DATABASE_URL when you provision a PostgreSQL database)
DATABASE_URL=postgres://taskboard:change-me@127.0.0.1:5432/taskboard
# Set to "true" only if your Postgres requires TLS (SPanel's local Postgres does not)
# DATABASE_SSL=false
# Optional: shown in the footer; otherwise derived from package.json + git/source hash
# APP_VERSION=1.0.0
# GIT_COMMIT=abc1234
# Smart Deploy sets PORT=8080 and HOSTNAME=0.0.0.0 itself
# PORT=3000
+10
View File
@@ -0,0 +1,10 @@
node_modules/
.next/
out/
.env
.env.*
!.env.example
*.log
.DS_Store
next-env.d.ts
*.tsbuildinfo
+11
View File
@@ -0,0 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// Smart Deploy's generated Dockerfile runs the standalone server (node server.js).
// Setting it here keeps local `npm run build` identical to what gets deployed.
output: 'standalone',
poweredByHeader: false,
reactStrictMode: true,
serverExternalPackages: ['pg'],
};
export default nextConfig;
+1226
View File
File diff suppressed because it is too large Load Diff
+27
View File
@@ -0,0 +1,27 @@
{
"name": "taskboard",
"version": "1.0.0",
"private": true,
"description": "Kanban-style task board: Next.js 15 (App Router, server actions) + PostgreSQL",
"engines": { "node": ">=20" },
"scripts": {
"dev": "next dev",
"prebuild": "node scripts/write-build-info.mjs",
"build": "next build",
"start": "next start -H 0.0.0.0 -p ${PORT:-3000}",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"next": "~15.5.9",
"pg": "^8.13.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/node": "^20.17.0",
"@types/pg": "^8.11.10",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"typescript": "^5.6.3"
}
}
+2
View File
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /api/
+21
View File
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"target": "ES2022",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": false,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [{ "name": "next" }],
"paths": { "@/*": ["./*"] }
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}