Skip to content

Commit 9b5279e

Browse files
hyperb1issclaude
andcommitted
style: 💄 apply Biome and Prettier formatting fixes
Auto-formatted all files with pnpm lint:fix including: - VS Code settings - Example app configs - Test app configs - TypeScript configs - Audit CI config - README formatting All files now conform to Biome + Prettier standards. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4618719 commit 9b5279e

File tree

12 files changed

+178
-176
lines changed

12 files changed

+178
-176
lines changed

.audit-ci.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"moderate": true,
3-
"allowlist": [],
4-
"retry-count": 10,
5-
"skip-dev": true
2+
"moderate": true,
3+
"allowlist": [],
4+
"retry-count": 10,
5+
"skip-dev": true
66
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
2+
"typescript.tsdk": "node_modules/typescript/lib"
33
}

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,17 @@ const apiUrl = env('NEXT_PUBLIC_API_URL')!
373373
**Key Differences:**
374374

375375
- **Server-side contexts** (server components, API routes, middleware):
376-
- Can access ALL environment variables via `env()` or `process.env`
377-
- Both private and public (`NEXT_PUBLIC_*`) variables are available
376+
377+
- Can access ALL environment variables via `env()` or `process.env`
378+
- Both private and public (`NEXT_PUBLIC_*`) variables are available
378379

379380
- **Client-side contexts** (client components, browser):
380-
- Can only access `NEXT_PUBLIC_*` variables via `env()`
381-
- Private variables are not available for security reasons
382-
- Attempting to access private variables throws an error
381+
- Can only access `NEXT_PUBLIC_*` variables via `env()`
382+
- Private variables are not available for security reasons
383+
- Attempting to access private variables throws an error
383384

384-
**Recommendation:** Use `env()` everywhere for consistency. It works in all contexts and provides better error messages when misused
385+
**Recommendation:** Use `env()` everywhere for consistency. It works in all contexts and provides better error messages
386+
when misused
385387

386388
## 📚 Additional Resources
387389

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": "next/core-web-vitals"
33
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"name": "with-app-router",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint"
10-
},
11-
"dependencies": {
12-
"@types/node": "24.7.2",
13-
"@types/react": "19.2.2",
14-
"@types/react-dom": "19.2.2",
15-
"eslint": "9.37.0",
16-
"eslint-config-next": "15.5.5",
17-
"next": "15.5.5",
18-
"@hyperb1iss/next-runtime-env": "link:../..",
19-
"react": "19.2.0",
20-
"react-dom": "19.2.0",
21-
"typescript": "5.9.3"
22-
}
2+
"name": "with-app-router",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"@types/node": "24.7.2",
13+
"@types/react": "19.2.2",
14+
"@types/react-dom": "19.2.2",
15+
"eslint": "9.37.0",
16+
"eslint-config-next": "15.5.5",
17+
"next": "15.5.5",
18+
"@hyperb1iss/next-runtime-env": "link:../..",
19+
"react": "19.2.0",
20+
"react-dom": "19.2.0",
21+
"typescript": "5.9.3"
22+
}
2323
}
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"compilerOptions": {
3-
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"strict": true,
8-
"forceConsistentCasingInFileNames": true,
9-
"noEmit": true,
10-
"esModuleInterop": true,
11-
"module": "esnext",
12-
"moduleResolution": "node",
13-
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"jsx": "preserve",
16-
"incremental": true,
17-
"plugins": [
18-
{
19-
"name": "next"
20-
}
21-
],
22-
"paths": {
23-
"@/*": ["./src/*"]
24-
}
25-
},
26-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27-
"exclude": ["node_modules"]
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"noEmit": true,
10+
"esModuleInterop": true,
11+
"module": "esnext",
12+
"moduleResolution": "node",
13+
"resolveJsonModule": true,
14+
"isolatedModules": true,
15+
"jsx": "preserve",
16+
"incremental": true,
17+
"plugins": [
18+
{
19+
"name": "next"
20+
}
21+
],
22+
"paths": {
23+
"@/*": ["./src/*"]
24+
}
25+
},
26+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27+
"exclude": ["node_modules"]
2828
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": "next/core-web-vitals"
33
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"name": "with-app-router",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint"
10-
},
11-
"dependencies": {
12-
"@hyperb1iss/next-runtime-env": "link:../..",
13-
"@types/node": "24.7.2",
14-
"@types/react": "19.2.2",
15-
"@types/react-dom": "19.2.2",
16-
"eslint": "9.37.0",
17-
"eslint-config-next": "15.5.5",
18-
"next": "15.5.5",
19-
"react": "19.2.0",
20-
"react-dom": "19.2.0",
21-
"typescript": "5.9.3"
22-
}
2+
"name": "with-app-router",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"@hyperb1iss/next-runtime-env": "link:../..",
13+
"@types/node": "24.7.2",
14+
"@types/react": "19.2.2",
15+
"@types/react-dom": "19.2.2",
16+
"eslint": "9.37.0",
17+
"eslint-config-next": "15.5.5",
18+
"next": "15.5.5",
19+
"react": "19.2.0",
20+
"react-dom": "19.2.0",
21+
"typescript": "5.9.3"
22+
}
2323
}
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"compilerOptions": {
3-
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"strict": true,
8-
"forceConsistentCasingInFileNames": true,
9-
"noEmit": true,
10-
"esModuleInterop": true,
11-
"module": "esnext",
12-
"moduleResolution": "node",
13-
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"jsx": "preserve",
16-
"incremental": true,
17-
"plugins": [
18-
{
19-
"name": "next"
20-
}
21-
],
22-
"paths": {
23-
"@/*": ["./src/*"]
24-
}
25-
},
26-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27-
"exclude": ["node_modules"]
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"noEmit": true,
10+
"esModuleInterop": true,
11+
"module": "esnext",
12+
"moduleResolution": "node",
13+
"resolveJsonModule": true,
14+
"isolatedModules": true,
15+
"jsx": "preserve",
16+
"incremental": true,
17+
"plugins": [
18+
{
19+
"name": "next"
20+
}
21+
],
22+
"paths": {
23+
"@/*": ["./src/*"]
24+
}
25+
},
26+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27+
"exclude": ["node_modules"]
2828
}

test-app/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "next-runtime-env-test-app",
3-
"version": "1.0.0",
4-
"private": true,
5-
"type": "module",
6-
"scripts": {
7-
"dev": "next dev",
8-
"build": "next build",
9-
"start": "node .next/standalone/test-app/server.js"
10-
},
11-
"dependencies": {
12-
"next": "15.5.5",
13-
"react": "19.2.0",
14-
"react-dom": "19.2.0",
15-
"@hyperb1iss/next-runtime-env": "file:.."
16-
}
2+
"name": "next-runtime-env-test-app",
3+
"version": "1.0.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "next dev",
8+
"build": "next build",
9+
"start": "node .next/standalone/test-app/server.js"
10+
},
11+
"dependencies": {
12+
"next": "15.5.5",
13+
"react": "19.2.0",
14+
"react-dom": "19.2.0",
15+
"@hyperb1iss/next-runtime-env": "file:.."
16+
}
1717
}

0 commit comments

Comments
 (0)