Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 0 additions & 21 deletions .editorconfig

This file was deleted.

17 changes: 0 additions & 17 deletions .env

This file was deleted.

4 changes: 0 additions & 4 deletions .env.development

This file was deleted.

8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Variables (also set in wrangler.toml for production)
RADIO4000_URL=https://radio4000.com
CLOUDINARY_URL=https://res.cloudinary.com/radio4000/image/upload

# Secrets (set via `wrangler secret put` for production)
YOUTUBE_API_KEY=
SUPABASE_URL=
SUPABASE_ANON_KEY=
31 changes: 0 additions & 31 deletions .env.local.example

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.json

This file was deleted.

33 changes: 9 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
node_modules

# testing
/coverage

# next.js
/.next/
/out/
coverage

# production
/build
dist

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files (examples are kept)
.env*.local
!.env*.local.example

# vercel
.vercel
# local env files
.env
.env.local
.dev.vars

# migrate script log files
/lib/migration-script/firebase-auth-export.json
/lib/migration-script/firebase-database-export.json
log-migrate-backups.json
log-migrate-errors.json
# cloudflare
.wrangler
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

13 changes: 13 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Always use the npm scripts defined in `package.json`. Never invoke vitest or other tools directly.

## Running tests

- `npm test` — run tests against local dev server (`localhost:8788`, requires `npm run dev` running in another terminal)
- `npm run test:preview` — run tests against the Cloudflare Workers preview deployment (the Hono rewrite)
- `npm run test:live` — run tests against production (`api.radio4000.com`), which currently runs the old Next.js codebase and will have expected failures

Use `npm run test:preview` as the primary way to verify the Hono rewrite works correctly.

## Code quality

- `npm run check` — run Biome linting/formatting and TypeScript type checking
35 changes: 35 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
Loading