Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a4d81db
chore(vscode): update deprecated typescript settings
edwintantawi Mar 25, 2026
e01273b
chore(oxc): use stable sort config from experimental
edwintantawi Mar 25, 2026
ffa6585
chore(vscode): invalid oxc fmt config path
edwintantawi Mar 27, 2026
ccf1afd
build(storybook): use build-in tsconfig path resolve
edwintantawi Mar 27, 2026
330c729
ci(github): using workflow_dispatch to trigger release (#84)
edwintantawi Apr 4, 2026
ae0de25
chore(bump): upgrade cloudflare infra deps (#86)
edwintantawi Apr 5, 2026
4927458
refactor(search): add search params schema file (#85)
edwintantawi Apr 5, 2026
960dd18
chore(bettter-auth): update deps lock file (#87)
edwintantawi Apr 5, 2026
6ad2480
fix(favicon): image size is too small (#88)
edwintantawi Apr 5, 2026
1e90047
chore(lint): use oxlint type aware (#89)
edwintantawi Apr 11, 2026
3e1631f
refactor(oxc): use config ts file instead of json (#90)
edwintantawi Apr 11, 2026
ed8fb40
style(oxc): remove old config files (#91)
edwintantawi Apr 11, 2026
d85f77e
refactor(start): rename entry files (#92)
edwintantawi Apr 11, 2026
e9aa471
chore(vscode): invalid oxfmt config path (#93)
edwintantawi Apr 11, 2026
877ba0e
refactor(auth): simplify auth error and guard (#94)
edwintantawi Apr 12, 2026
278b014
feat(analytic): add posthog wrapper for analytic capture (#60)
edwintantawi Apr 13, 2026
afeea95
chore(pnpm): move npmrc config into pnpm workspace (#95)
edwintantawi Apr 13, 2026
4d3f80b
build(posthog): only generate and upload sourcemap when enabled (#97)
edwintantawi Apr 19, 2026
6e5cabd
feat(cache): add cache control middleware lib (#96)
edwintantawi Apr 19, 2026
8b4e270
fix(posthog): cli env only used at build time (#98)
edwintantawi Apr 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Debug
# Devtools
VITE_DEVTOOLS_ENABLED=<enable vite devtools (default: false)>

# Alchemy (required when using alchemy)
Expand Down Expand Up @@ -33,7 +33,7 @@ VITE_PUBLIC_POSTHOG_KEY=<***>
VITE_PUBLIC_POSTHOG_DEBUG=<enable debug mode (default: false)>
VITE_PUBLIC_POSTHOG_ENABLED=<enable posthog (default: false)>

# Observability - Posthog sourcemap upload (CI only)
# Observability - Posthog sourcemap upload
# See https://app.posthog.com/settings/project#variables
POSTHOG_CLI_HOST=<posthog cli host url>
POSTHOG_CLI_PROJECT_ID=<***>
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/deployment-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,38 +59,3 @@ jobs:
AUTH_GITHUB_CLIENT_SECRET: ${{ secrets.AUTH_GITHUB_CLIENT_SECRET }}
AUTH_GOOGLE_CLIENT_ID: ${{ secrets.AUTH_GOOGLE_CLIENT_ID }}
AUTH_GOOGLE_CLIENT_SECRET: ${{ secrets.AUTH_GOOGLE_CLIENT_SECRET }}
release:
needs:
- deploy
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.1
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
cache: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- name: Install Dependencies
run: pnpm install --prefer-offline --frozen-lockfile
env:
HUSKY: 0
- name: Initialize Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Create Release
run: pnpm release --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45 changes: 45 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow is triggered manually via the "Release" workflow dispatch or by a repository dispatch event with the type "webhook_release".
# It uses the release-it tool to automate the release process, including generating changelogs and creating GitHub releases.

name: Release
on:
workflow_dispatch:
repository_dispatch:
types: [webhook_release]
permissions:
contents: write
id-token: write
env:
NODE_VERSION: '24.14.0'
PNPM_VERSION: '10.32.1'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v5.0.0
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
cache: true
# Install only release-it and its dependencies to minimize install time
- name: Install Dependencies
env:
HUSKY: 0
run: |
pnpm add --global \
release-it@19.2.4 \
@release-it/conventional-changelog@10.0.6 \
conventional-changelog-conventionalcommits@9.3.0
- name: Initialize Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Create Release
run: release-it --ci --config .release-it.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pnpm lint-staged
NODE_OPTIONS="--experimental-strip-types" pnpm lint-staged --config lint-staged.config.ts

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

46 changes: 0 additions & 46 deletions .oxfmtrc.json

This file was deleted.

112 changes: 0 additions & 112 deletions .oxlintrc.json

This file was deleted.

12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"**/routeTree.gen.ts": true
},

// Typescript
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.updateImportsOnFileMove.enabled": "prompt",
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.preferTypeOnlyAutoImports": true,
// Javascript/Typescript
"js/ts.tsdk.path": "node_modules/typescript/lib",
"js/ts.updateImportsOnFileMove.enabled": "prompt",
"js/ts.preferences.importModuleSpecifier": "non-relative",
"js/ts.preferences.preferTypeOnlyAutoImports": true,

// Extension - Oxc
"oxc.enable": true,
"oxc.fmt.configPath": ".oxfmtrc.json",
"oxc.fmt.configPath": "oxfmt.config.ts",

// Extension - Tailwind CSS
"tailwindCSS.classAttributes": ["class", "className", "classNames"],
Expand Down
8 changes: 8 additions & 0 deletions @types/react.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'react';

declare module 'react' {
interface CSSProperties {
// Allow any CSS variable starting with '--'
[key: `--${string}`]: string | number;
}
}
1 change: 1 addition & 0 deletions alchemy.run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const kvStore = await KVNamespace('kv', {
/** Provision a TanStack Start worker for the application */
export const worker = await TanStackStart('website', {
adopt: true,
wrangler: { main: 'src/entry.server.ts' },
observability: isProductionStage(app) ? { enabled: true } : undefined,
url: isProductionStage(app) ? false : true,
domains: getDomain(app),
Expand Down
12 changes: 2 additions & 10 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dotenv/config';
import { defineConfig } from 'drizzle-kit';

import { getLocalCloudflareD1Path } from './src/lib/database/utils';
import { drizzleEnv } from './src/lib/env/drizzle';

const DBEnvironments = ['local', 'remote'] as const;
type DBEnvironment = (typeof DBEnvironments)[number];
Expand All @@ -11,7 +12,6 @@ interface DBConfig {
config: ReturnType<typeof defineConfig>;
}

const DB_ENV = process.env.DB_ENV as DBEnvironment;
const OUT_DIR = './src/lib/database/migrations';
const SCHEMA_DIR = './src/lib/database/schema';

Expand Down Expand Up @@ -59,14 +59,6 @@ const ENVIRONMENTS: Record<DBEnvironment, DBConfig> = {
},
};

const activeConfig = ENVIRONMENTS[DB_ENV];

if (!activeConfig) {
throw new Error(
`Invalid DB_ENV value. Expected one of ${DBEnvironments.join(', ')}. Please set the DB_ENV environment variable accordingly.`,
);
}

const activeConfig = ENVIRONMENTS[drizzleEnv.DB_ENV];
console.info(`Running Drizzle config in ${activeConfig.name} mode`);

export default activeConfig.config;
42 changes: 0 additions & 42 deletions lint-staged.config.js

This file was deleted.

Loading
Loading