diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bc23fcf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +services: + db: + image: postgres:16.3 + container_name: postgres + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: postgres + ports: + - "5432:5432" + volumes: + - postgres-data:/var/lib/postgresql/data + +volumes: + postgres-data: diff --git a/next.config.mjs b/next.config.mjs index 4678774..d5456a1 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + reactStrictMode: true, +}; export default nextConfig; diff --git a/tsconfig.json b/tsconfig.json index e7ff90f..bd52bbb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "target": "ES5", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, @@ -18,9 +19,10 @@ } ], "paths": { - "@/*": ["./*"] + "@app/*": ["./app/*"], + "@prisma/*": ["./prisma/*"] } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", ".yarn", ".next", ".vercel", ".vscode"] } diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..a7e1741 --- /dev/null +++ b/vercel.json @@ -0,0 +1,38 @@ +{ + "headers": [ + { + "source": "/api/(.*)", + "headers": [ + { + "key": "Access-Control-Allow-Methods", + "value": "GET, POST, OPTIONS" + }, + { + "key": "Access-Control-Allow-Headers", + "value": "Content-Type, Accept" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=63072000; includeSubDomains; preload" + }, + { + "key": "Content-Security-Policy", + "value": "default-src 'none'" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-Frame-Options", + "value": "DENY" + }, + { "key": "Referrer-Policy", "value": "same-origin" }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + } + ] + } + ] +}