Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ lerna-debug.log*
node_modules
dist
dist-ssr
.next
out
*.tsbuildinfo
next-env.d.ts
*.local

# Editor directories and files
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

1,563 changes: 1,563 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

29 changes: 0 additions & 29 deletions eslint.config.js

This file was deleted.

28 changes: 28 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
import { defineConfig, globalIgnores } from 'eslint/config';

export default defineConfig([
...nextCoreWebVitals,
{
rules: {
'no-unused-vars': ['warn', { varsIgnorePattern: '^[A-Z_]' }],
},
},
{
// App-router layouts inject <link rel="stylesheet"> directly so the
// no-page-custom-font rule (which targets Pages router) doesn't apply.
files: ['src/app/layout.jsx'],
rules: {
'@next/next/no-page-custom-font': 'off',
},
},
globalIgnores([
'.next/**',
'out/**',
'build/**',
'dist/**',
'coverage/**',
'public/**',
'scripts/**',
]),
]);
140 changes: 0 additions & 140 deletions index.html

This file was deleted.

15 changes: 15 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"jsx": "preserve",
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"checkJs": false
},
"include": ["src/**/*", "scripts/**/*"],
"exclude": ["node_modules", ".next", "dist", "out"]
}
18 changes: 18 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// Pin the workspace root so Turbopack does not silently pick up a stray
// lockfile from a parent directory during local development or CI.
turbopack: {
root: process.cwd(),
},
async rewrites() {
return [
{
source: '/ingest/:path*',
destination: 'https://us.i.posthog.com/:path*',
},
];
},
};

export default nextConfig;
Loading