chore: harden local dev environment
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
.data/
|
||||
.env*.local
|
||||
.next/
|
||||
node_modules/
|
||||
tsconfig.tsbuildinfo
|
||||
|
||||
21
compose.yaml
Normal file
21
compose.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
container_name: teatea-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: teatea_pension
|
||||
POSTGRES_USER: teatea
|
||||
POSTGRES_PASSWORD: teatea_dev_password
|
||||
ports:
|
||||
- "127.0.0.1:5432:5432"
|
||||
volumes:
|
||||
- teatea-postgres-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U teatea -d teatea_pension"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
|
||||
volumes:
|
||||
teatea-postgres-data:
|
||||
@@ -2,6 +2,32 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
outputFileTracingRoot: process.cwd(),
|
||||
webpack(config, { dev }) {
|
||||
if (dev) {
|
||||
config.watchOptions = {
|
||||
...config.watchOptions,
|
||||
ignored: [
|
||||
"**/.agents/**",
|
||||
"**/.claude/**",
|
||||
"**/.codex/**",
|
||||
"**/.cursor/**",
|
||||
"**/.data/**",
|
||||
"**/.git/**",
|
||||
"**/.next/**",
|
||||
"**/.pi/**",
|
||||
"**/.playwright-mcp/**",
|
||||
"**/.serena/**",
|
||||
"**/.spec-workflow/**",
|
||||
"**/.trae/**",
|
||||
"**/.trellis/**",
|
||||
"**/output/**",
|
||||
"**/tmp/**",
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user