Skip to content

Commit b367919

Browse files
committed
first push
1 parent e9e6695 commit b367919

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+11853
-0
lines changed

.env.example

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Since the ".env" file is gitignored, you can use the ".env.example" file to
2+
# build a new ".env" file when you clone the repo. Keep this file up-to-date
3+
# when you add new variables to `.env`.
4+
5+
# This file will be committed to version control, so make sure not to have any
6+
# secrets in it. If you are cloning this repo, create a copy of this file named
7+
# ".env" and populate it with your secrets.
8+
9+
# When adding additional environment variables, the schema in "/src/env.mjs"
10+
# should be updated accordingly.
11+
12+
# Prisma
13+
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
14+
DATABASE_URL="file:./db.sqlite"
15+
16+
# Next Auth
17+
# You can generate a new secret on the command line with:
18+
# openssl rand -base64 32
19+
# https://next-auth.js.org/configuration/options#secret
20+
# NEXTAUTH_SECRET=""
21+
NEXTAUTH_URL="http://localhost:3000"
22+
23+

.eslintrc.cjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// eslint-disable-next-line @typescript-eslint/no-var-requires
2+
const path = require("path");
3+
4+
/** @type {import("eslint").Linter.Config} */
5+
const config = {
6+
overrides: [
7+
{
8+
extends: [
9+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
10+
],
11+
files: ["*.ts", "*.tsx"],
12+
parserOptions: {
13+
project: path.join(__dirname, "tsconfig.json"),
14+
},
15+
},
16+
],
17+
parser: "@typescript-eslint/parser",
18+
parserOptions: {
19+
project: path.join(__dirname, "tsconfig.json"),
20+
},
21+
plugins: ["@typescript-eslint"],
22+
extends: ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
23+
rules: {
24+
"@typescript-eslint/consistent-type-imports": [
25+
"warn",
26+
{
27+
prefer: "type-imports",
28+
fixStyle: "inline-type-imports",
29+
},
30+
],
31+
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
32+
},
33+
};
34+
35+
module.exports = config;

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# database
12+
/prisma/db.sqlite
13+
/prisma/db.sqlite-journal
14+
15+
# next.js
16+
/.next/
17+
/out/
18+
next-env.d.ts
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# local env files
34+
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
35+
.env
36+
.env*.local
37+
38+
# vercel
39+
.vercel
40+
41+
# typescript
42+
*.tsbuildinfo

next.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
3+
* This is especially useful for Docker builds.
4+
*/
5+
!process.env.SKIP_ENV_VALIDATION && (await import("./src/env.mjs"));
6+
7+
/** @type {import("next").NextConfig} */
8+
const config = {
9+
reactStrictMode: true,
10+
11+
/**
12+
* If you have the "experimental: { appDir: true }" setting enabled, then you
13+
* must comment the below `i18n` config out.
14+
*
15+
* @see https://github.com/vercel/next.js/issues/41980
16+
*/
17+
i18n: {
18+
locales: ["en"],
19+
defaultLocale: "en",
20+
},
21+
images: {
22+
domains: ["pbs.twimg.com"],
23+
},
24+
};
25+
export default config;

0 commit comments

Comments
 (0)