feat(bun): upgrade to bun, reduce docker image size by 95%, upgrade docs & ci (#371)

* migrate to bun

* added envvars to drizzle

* upgrade bun devcontainer feature to a valid one

* added bun, docker not working

* updated envvars, updated to bunder and esnext modules

* fixed build, reinstated otel

* feat: optimized multi-stage docker images

* add coerce for boolean envvar

* feat: add docker-compose configuration for local LLM services and remove legacy Dockerfile and entrypoint script

* feat: add docker-compose files for local and production environments, and implement GitHub Actions for Docker image build and publish

* refactor: remove unused generateStaticParams function from various API routes and maintain dynamic rendering

* cleanup

* upgraded bun

* updated ci

* fixed build

---------

Co-authored-by: Aditya Tripathi <aditya@climactic.co>
This commit is contained in:
Waleed Latif
2025-05-18 01:01:32 -07:00
committed by GitHub
co-authored by Aditya Tripathi
parent e57d3f79a1
commit 717e17d02a
144 changed files with 5173 additions and 53421 deletions
+5 -13
View File
@@ -2,13 +2,11 @@
# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# bun specific
.bun
bun.lockb
bun-debug.log*
# testing
/coverage
@@ -22,12 +20,6 @@
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# env files
.env
*.env
+2 -5
View File
@@ -6,11 +6,7 @@ This is a Next.js application generated with
Run development server:
```bash
npm run dev
# or
pnpm dev
# or
yarn dev
bun run dev
```
Open http://localhost:3000 with your browser to see the result.
@@ -24,3 +20,4 @@ resources:
features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs
- [Bun Documentation](https://bun.sh/docs) - learn about Bun features and API
+1 -1
View File
@@ -3,7 +3,7 @@ import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page
import mdxComponents from '@/components/mdx-components'
import { source } from '@/lib/source'
export const dynamic = 'force-static'
export const dynamic = 'force-dynamic'
export default async function Page(props: { params: Promise<{ slug?: string[] }> }) {
const params = await props.params
-6105
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -4,9 +4,9 @@
"private": true,
"license": "Apache-2.0",
"scripts": {
"dev": "dotenv -- next dev --port 3001",
"build": "dotenv -- next build",
"start": "dotenv -- next start",
"dev": "next dev --port 3001",
"build": "next build",
"start": "next start",
"postinstall": "fumadocs-mdx"
},
"dependencies": {