-
Notifications
You must be signed in to change notification settings - Fork 5.7k
chore: upgrade packages, add t3 env, and update biome #1172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
techwithanirudh
wants to merge
21
commits into
vercel:main
Choose a base branch
from
techwithanirudh:feat/update-packages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,094
−4,148
Open
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
cb90378
chore: update configuration files and workflows
techwithanirudh e0b9ea7
chore: update configuration files and workflows
techwithanirudh 8cdae14
chore: add environment configuration and spell checking tools
techwithanirudh 623433c
refactor: replace process.env with env module for environment variabl…
techwithanirudh 16ab40b
chore: update database schema and configuration
techwithanirudh 61d30d6
chore: update package dependencies and lock file
techwithanirudh 6af7d29
chore: update package dependencies and lock file
techwithanirudh e3f1113
chore: refactor database access and update biome configuration
techwithanirudh 31a28e0
chore: update zod dependency to version 4.1.5
techwithanirudh b5dd7ff
chore: update linting rules and address unused parameters
techwithanirudh c6cc90a
chore: streamline environment variable management and update scripts
techwithanirudh 14fedd2
chore: add migration for renaming Document column and update schema
techwithanirudh e351059
fix: adjust button padding and update environment variable handling
techwithanirudh ec4d5b3
chore: update motion library and remove framer-motion references
techwithanirudh d5b5415
chore: update cspell configuration and add CI workflow
techwithanirudh b0ff29c
chore: remove TODO.md and update chat actions
techwithanirudh ec9da91
chore: enhance environment variable handling and update scripts
techwithanirudh 6f4fb86
Merge branch 'main' of https://github.com/vercel/ai-chatbot into feat…
techwithanirudh dcc1c87
fix: remove eslint
techwithanirudh 1a9b269
Update env.ts
techwithanirudh 9ce25bb
fix: make REDIS_URL optional in environment configuration
techwithanirudh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | ||
"dictionaries": [ | ||
"software-terms", | ||
"npm", | ||
"fullstack" | ||
], | ||
"files": [ | ||
"**", | ||
".vscode/**", | ||
".github/**" | ||
], | ||
"ignorePaths": [ | ||
"pnpm-lock.yaml", | ||
"bun.lock", | ||
"bun.lockb", | ||
"lib/db/migrations" | ||
], | ||
"ignoreRegExpList": [ | ||
"apiKey='[a-zA-Z0-9-]{32}'" | ||
], | ||
"import": [ | ||
"@cspell/dict-bash/cspell-ext.json" | ||
], | ||
"useGitignore": true, | ||
"version": "0.2", | ||
"words": [ | ||
"turbopack", | ||
"remark", | ||
"katex", | ||
"lefthook", | ||
"orama", | ||
"catppuccin", | ||
"inkeep", | ||
"devcontainers", | ||
"twoslash", | ||
"vitesse", | ||
"scira", | ||
"subsecond", | ||
"bprogress", | ||
"contentlayer", | ||
"basehub", | ||
"shadcn", | ||
"subcomponents", | ||
"nuqs", | ||
"nocompatible", | ||
"pseudoelements", | ||
"matplotlib", | ||
"pyplot", | ||
"savefig", | ||
"Pyodide", | ||
"unparse", | ||
"papaparse", | ||
"diffview", | ||
"autofocus", | ||
"Vercelians", | ||
"orderedmap", | ||
"prosemirror", | ||
"hitbox", | ||
"usehooks", | ||
"inputrules", | ||
"Delba", | ||
"Oliveira", | ||
"upvoting", | ||
"downvoting", | ||
"downvoted", | ||
"noninteractive", | ||
"generationtime", | ||
"vaul", | ||
"nums", | ||
"groq", | ||
"deepseek", | ||
"sdxl", | ||
"logprobs", | ||
"dall", | ||
"textblock", | ||
"Geordanna", | ||
"Cordero", | ||
"Pawel", | ||
"Czerwinski", | ||
"Olah", | ||
"Filipe", | ||
"aisdk", | ||
"yxxx", | ||
"nosniff", | ||
"sameorigin", | ||
"neondatabase", | ||
"viewports", | ||
"authjs", | ||
"webauthn", | ||
"filechooser", | ||
"emilkowalski", | ||
"Embla", | ||
"tokenlens", | ||
"viewbox", | ||
"noblank", | ||
"prefault", | ||
"shiki", | ||
"opengraph" | ||
] | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "ai-chatbot", | ||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", | ||
"forwardPorts": [ | ||
3000 | ||
], | ||
"portsAttributes": { | ||
"3000": { | ||
"label": "Web", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"configureZshAsDefaultShell": true | ||
}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {} | ||
}, | ||
"containerEnv": {}, | ||
"remoteEnv": {}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
// TypeScript | ||
"better-ts-errors.better-ts-errors", | ||
// Other | ||
"bradlc.vscode-tailwindcss", | ||
"streetsidesoftware.code-spell-checker", | ||
"biomejs.biome", | ||
"aaron-bond.better-comments", | ||
"formulahendry.auto-rename-tag" | ||
], | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"debug.internalConsoleOptions": "neverOpen", | ||
"editor.formatOnPaste": true, | ||
"editor.guides.bracketPairs": "active", | ||
"scm.defaultViewMode": "tree", | ||
"diffEditor.diffAlgorithm": "advanced", | ||
"diffEditor.experimental.showMoves": true, | ||
"diffEditor.renderSideBySide": false, | ||
"files.watcherExclude": { | ||
"**/node_modules/**": true | ||
}, | ||
// Prettifies the response with emojis and such. | ||
"betterTypeScriptErrors.prettify": true | ||
} | ||
} | ||
}, | ||
"postCreateCommand": { | ||
"web": "pnpm install", | ||
"playwright": "pnpm exec playwright install-deps && pnpm exec playwright install" | ||
} | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Check setup | ||
description: Set up Node, and pnpm, prime caches, and install dependencies. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
run_install: false | ||
|
||
- name: Get pnpm store path | ||
id: pnpm-cache | ||
shell: bash | ||
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
|
||
- name: Cache pnpm store | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm install --frozen-lockfile |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
types: | ||
name: TypeScript | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Generate types | ||
run: pnpm typegen | ||
|
||
- name: Run type check | ||
run: pnpm typecheck | ||
|
||
biome: | ||
name: Biome | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run Biome | ||
run: pnpm check | ||
|
||
spelling: | ||
name: Spelling | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run spelling check | ||
run: pnpm check:spelling |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
v22.19.0 |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.