From daabcce780f0a2d2fc31ffa976239ef36fcda5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mime=20=C4=8Cuvalo?= Date: Sat, 4 Nov 2023 20:58:47 +0000 Subject: [PATCH] config: update to latest next.js boilerplate --- .gitignore | 24 +++++++++++------------- prisma/.env | 2 ++ tsconfig.json | 17 +++++++++-------- 3 files changed, 22 insertions(+), 21 deletions(-) create mode 100644 prisma/.env diff --git a/.gitignore b/.gitignore index 4f6bb507..623a2ced 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /node_modules /.pnp .pnp.js +.yarn/install-state.gz # testing /coverage @@ -24,28 +25,25 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + # sessions sessions/ # vim *.sw[a-p] -# local env files -.env -.env.local -.env.development.local -.env.test.local -.env.production.local - -# vercel -.vercel - # i18n i18n-compiled-lang -# typescript -*.tsbuildinfo - # storybook build-storybook.log storybook-static diff --git a/prisma/.env b/prisma/.env new file mode 100644 index 00000000..99df8ea7 --- /dev/null +++ b/prisma/.env @@ -0,0 +1,2 @@ +DATABASE_URL=postgresql://mime:UzvbS$pbj[u3.G@localhost:5432/helloworld?pgbouncer=true&connection_limit=1&pool_timeout=30 +#DATABASE_URL=postgres://postgres:i64FO1fqfiw9bgUn@db.aindmzhccpdjesbwbdvn.supabase.co:6543/postgres?pgbouncer=true&sslmode=require&connection_limit=1&pool_timeout=30 \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 28b937ae..3a7e4f06 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,17 +5,21 @@ "allowJs": true, "skipLibCheck": true, "strict": true, - "forceConsistentCasingInFileNames": true, "noEmit": true, "esModuleInterop": true, "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", "incremental": true, - "baseUrl": ".", + "plugins": [ + { + "name": "next" + } + ], "paths": { + "@/*": ["./*"], "app/*": ["./app/*"], "components": ["./components"], "components/*": ["./components/*"], @@ -29,11 +33,8 @@ "util/*": ["./util/*"], "vendor/*": ["./vendor/*"] }, - "plugins": [ - { - "name": "next" - } - ] + "forceConsistentCasingInFileNames": true, + "baseUrl": "." }, "include": [ "next-env.d.ts",