Project skeleton: Next.js 15 + TypeScript, standalone output
This commit is contained in:
@@ -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
@@ -0,0 +1,10 @@
|
||||
node_modules/
|
||||
.next/
|
||||
out/
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
*.log
|
||||
.DS_Store
|
||||
next-env.d.ts
|
||||
*.tsbuildinfo
|
||||
@@ -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;
|
||||
Generated
+1226
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /api/
|
||||
@@ -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"]
|
||||
}
|
||||
Reference in New Issue
Block a user