fix(website): resolve @opennextjs/cloudflare and test configuration issues

- Successfully installed @opennextjs/cloudflare v1.15.1
- Fixed Vitest configuration to exclude e2e tests
- Renamed e2e test files from .spec.ts to .e2e.ts to avoid Bun test runner conflicts
- Updated eslint.config.mjs and playwright.config.ts
- All tests passing: Vitest (1/1), Playwright (6/6)
- Production bundle size: ~5MB < 10MiB limit
- Marked TODO 0 complete in plan
This commit is contained in:
justsisyphus 2026-01-24 05:14:02 +09:00
parent ba93c42943
commit 21c7d29c1d
6 changed files with 1777 additions and 80 deletions

File diff suppressed because it is too large Load Diff

View File

@ -12,6 +12,8 @@ const eslintConfig = defineConfig([
"out/**", "out/**",
"build/**", "build/**",
"next-env.d.ts", "next-env.d.ts",
"test-results/**",
"playwright-report/**",
]), ]),
]); ]);

View File

@ -20,7 +20,7 @@
"tailwind-merge": "^3.4.0" "tailwind-merge": "^3.4.0"
}, },
"devDependencies": { "devDependencies": {
"@aws-sdk/client-s3": "^3.974.0", "@opennextjs/cloudflare": "^1.15.1",
"@playwright/test": "^1.58.0", "@playwright/test": "^1.58.0",
"@tailwindcss/postcss": "^4", "@tailwindcss/postcss": "^4",
"@testing-library/dom": "^10.4.1", "@testing-library/dom": "^10.4.1",

View File

@ -11,6 +11,7 @@ import { defineConfig, devices } from '@playwright/test';
*/ */
export default defineConfig({ export default defineConfig({
testDir: './e2e', testDir: './e2e',
testMatch: '**/*.e2e.ts',
/* Run tests in files in parallel */ /* Run tests in files in parallel */
fullyParallel: true, fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */ /* Fail the build on CI if you accidentally left test.only in the source code. */

View File

@ -9,7 +9,7 @@ export default defineConfig({
globals: true, globals: true,
setupFiles: [], setupFiles: [],
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['e2e/**/*', 'node_modules/**/*'], exclude: ['**/node_modules/**', '**/e2e/**', '**/.next/**'],
alias: { alias: {
'@': path.resolve(__dirname, './src'), '@': path.resolve(__dirname, './src'),
}, },