-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from hackerspace-ntnu/nextjs-15
Nextjs 15
- Loading branch information
Showing
58 changed files
with
1,362 additions
and
653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { env } from '@/env'; | ||
import { defineConfig } from 'drizzle-kit'; | ||
|
||
export default defineConfig({ | ||
const config = defineConfig({ | ||
schema: './src/server/db/schema/*.ts', | ||
dialect: 'postgresql', | ||
dbCredentials: { | ||
url: `postgresql://${env.DATABASE_USER}:${env.DATABASE_PASSWORD}@${env.DATABASE_HOST}:${env.DATABASE_PORT}/${env.DATABASE_NAME}`, | ||
}, | ||
}); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"prepare": "if [ \"$NODE_ENV\" != \"production\" ]; then lefthook install; fi", | ||
"dev": "next dev", | ||
"prepare": "lefthook install", | ||
"dev": "next dev --turbopack", | ||
"lint": "biome check --write", | ||
"prebuild": "next telemetry disable", | ||
"build": "next build", | ||
"postbuild": "next-sitemap && mkdir -p .next/standalone/public .next/standalone/.next/static && cp -r public/* .next/standalone/public && cp -r .next/static/* .next/standalone/.next/static", | ||
"postbuild": "mkdir -p .next/standalone/public .next/standalone/.next/static && cp -r public/* .next/standalone/public && cp -r .next/static/* .next/standalone/.next/static", | ||
"start": "bun run .next/standalone/server.js", | ||
"db:start": "docker-compose up db", | ||
"db:generate": "drizzle-kit generate", | ||
|
@@ -20,19 +20,21 @@ | |
}, | ||
"dependencies": { | ||
"@aws-sdk/client-s3": "^3.637.0", | ||
"@hookform/resolvers": "^3.9.0", | ||
"@lucia-auth/adapter-drizzle": "^1.1.0", | ||
"@radix-ui/react-avatar": "^1.1.0", | ||
"@radix-ui/react-dialog": "^1.1.1", | ||
"@radix-ui/react-dropdown-menu": "^2.1.1", | ||
"@radix-ui/react-label": "^2.1.0", | ||
"@radix-ui/react-popover": "^1.1.1", | ||
"@radix-ui/react-scroll-area": "^1.2.0", | ||
"@radix-ui/react-select": "^2.1.1", | ||
"@radix-ui/react-separator": "^1.1.0", | ||
"@radix-ui/react-slot": "^1.1.0", | ||
"@radix-ui/react-tooltip": "^1.1.1", | ||
"@t3-oss/env-nextjs": "^0.10.1", | ||
"@tanstack/react-form": "^0.34.1", | ||
"@tanstack/react-query": "^5.53.1", | ||
"@tanstack/zod-form-adapter": "^0.34.1", | ||
"@trpc/client": "^11.0.0-rc.490", | ||
"@trpc/react-query": "^11.0.0-rc.490", | ||
"@trpc/server": "^11.0.0-rc.490", | ||
|
@@ -43,33 +45,31 @@ | |
"drizzle-orm": "^0.33.0", | ||
"lucia": "^3.2.0", | ||
"lucide-react": "^0.396.0", | ||
"next": "^14.2.10", | ||
"next-intl": "^3.18.1", | ||
"next-themes": "^0.3.0", | ||
"nuqs": "^1.17.4", | ||
"next": "15.0.1", | ||
"next-intl": "^3.23.5", | ||
"next-themes": "1.0.0-beta.0", | ||
"nuqs": "^2.0.4", | ||
"postgres": "^3.4.4", | ||
"react": "^18.3.1", | ||
"react-day-picker": "8.10.1", | ||
"react-dom": "^18.3.1", | ||
"react-hook-form": "^7.53.0", | ||
"react": "19.0.0-rc-69d4b800-20241021", | ||
"react-day-picker": "^9.1.4", | ||
"react-dom": "19.0.0-rc-69d4b800-20241021", | ||
"reading-time": "^1.5.0", | ||
"sharp": "^0.33.4", | ||
"superjson": "^2.2.1", | ||
"tailwind-merge": "^2.5.2", | ||
"vaul": "^1.1.0", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.9.1", | ||
"@fluid-tailwind/tailwind-merge": "^0.0.2", | ||
"@types/node": "^20.14.8", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react": "npm:[email protected]", | ||
"@types/react-dom": "npm:[email protected]", | ||
"autoprefixer": "^10.4.20", | ||
"client-only": "^0.0.1", | ||
"drizzle-kit": "^0.24.1", | ||
"fluid-tailwind": "^1.0.3", | ||
"lefthook": "^1.7.14", | ||
"next-sitemap": "^4.2.3", | ||
"postcss": "^8.4.38", | ||
"server-only": "^0.0.1", | ||
"tailwind-scrollbar": "^3.1.0", | ||
|
@@ -78,5 +78,9 @@ | |
"tailwindcss-radix": "^3.0.5", | ||
"typescript": "^5.5.0" | ||
}, | ||
"overrides": { | ||
"@types/react": "npm:[email protected]", | ||
"@types/react-dom": "npm:[email protected]" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
import { getTranslations, unstable_setRequestLocale } from 'next-intl/server'; | ||
import { getTranslations, setRequestLocale } from 'next-intl/server'; | ||
|
||
export async function generateMetadata({ | ||
params: { locale }, | ||
params, | ||
}: { | ||
params: { locale: string }; | ||
params: Promise<{ locale: string }>; | ||
}) { | ||
const { locale } = await params; | ||
|
||
const t = await getTranslations({ locale, namespace: 'layout' }); | ||
|
||
return { | ||
title: t('about'), | ||
}; | ||
} | ||
|
||
export default function AboutPage({ | ||
params: { locale }, | ||
export default async function AboutPage({ | ||
params, | ||
}: { | ||
params: { locale: string }; | ||
params: Promise<{ locale: string }>; | ||
}) { | ||
unstable_setRequestLocale(locale); | ||
const { locale } = await params; | ||
setRequestLocale(locale); | ||
return <div>this should be about page</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
import { getTranslations, unstable_setRequestLocale } from 'next-intl/server'; | ||
import { getTranslations, setRequestLocale } from 'next-intl/server'; | ||
|
||
export async function generateMetadata({ | ||
params: { locale }, | ||
params, | ||
}: { | ||
params: { locale: string }; | ||
params: Promise<{ locale: string }>; | ||
}) { | ||
const { locale } = await params; | ||
|
||
const t = await getTranslations({ locale, namespace: 'layout' }); | ||
|
||
return { | ||
title: t('events'), | ||
}; | ||
} | ||
|
||
export default function EventsPage({ | ||
params: { locale }, | ||
export default async function EventsPage({ | ||
params, | ||
}: { | ||
params: { locale: string }; | ||
params: Promise<{ locale: string }>; | ||
}) { | ||
unstable_setRequestLocale(locale); | ||
const { locale } = await params; | ||
setRequestLocale(locale); | ||
return <div>This should be events page</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.