Skip to content

Commit fbf3ce4

Browse files
committed
fix(landingpage): sync upstream payloadcms template fixes
- Add console-based cloudflare logger to avoid pino-pretty fs.write error in Workers production (upstream 8791a726) - Add resolvePluginsRelativeTo and generated file ignores to ESLint config (upstream 8791a726, 941a41f6) - Add images.localPatterns for local media serving (upstream 1a0f4d02) - Bump devDeps: jsdom 28.0.0, vite-tsconfig-paths 6.0.5, vitest 4.0.18 (upstream 5edba8ed)
1 parent c3a47d0 commit fbf3ce4

5 files changed

Lines changed: 346 additions & 322 deletions

File tree

landingpage/eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const __dirname = dirname(__filename)
77

88
const compat = new FlatCompat({
99
baseDirectory: __dirname,
10+
resolvePluginsRelativeTo: __dirname,
1011
})
1112

1213
const eslintConfig = [
@@ -31,7 +32,7 @@ const eslintConfig = [
3132
},
3233
},
3334
{
34-
ignores: ['.next/'],
35+
ignores: ['.next/', 'src/payload-types.ts', 'src/payload-generated-schema.ts'],
3536
},
3637
]
3738

landingpage/next.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ const nextConfig = {
2525
]
2626
},
2727
images: {
28+
localPatterns: [
29+
{
30+
pathname: '/api/media/file/**',
31+
},
32+
],
2833
remotePatterns: [
2934
{
3035
protocol: 'https' as const,

landingpage/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@
6464
"@vitejs/plugin-react": "4.7.0",
6565
"eslint": "^9.39.4",
6666
"eslint-config-next": "15.5.14",
67-
"jsdom": "26.1.0",
67+
"jsdom": "28.0.0",
6868
"playwright": "1.59.1",
6969
"playwright-core": "1.59.1",
7070
"prettier": "^3.8.1",
7171
"tw-animate-css": "^1.4.0",
7272
"typescript": "5.9.3",
73-
"vite-tsconfig-paths": "5.1.4",
74-
"vitest": "3.2.4",
73+
"vite-tsconfig-paths": "6.0.5",
74+
"vitest": "4.0.18",
7575
"wrangler": "~4.80.0"
7676
},
7777
"engines": {

0 commit comments

Comments
 (0)