fix(web): adapt build tooling

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-18 20:55:59 +09:00
parent 92a5a44218
commit 9a9d9bd5a1
4 changed files with 14 additions and 6 deletions
+12 -1
View File
@@ -3,6 +3,17 @@ import nextPlugin from "@next/eslint-plugin-next"
import prettier from "eslint-config-prettier/flat"
import tseslint from "typescript-eslint"
const nextCoreWebVitalsConfig = {
name: "next/core-web-vitals",
plugins: {
"@next/next": nextPlugin,
},
rules: {
...nextPlugin.configs.recommended.rules,
...nextPlugin.configs["core-web-vitals"].rules,
},
}
export default [
{
ignores: [".next/**", "out/**", "build/**", "next-env.d.ts"],
@@ -18,7 +29,7 @@ export default [
},
},
},
nextPlugin.flatConfig.coreWebVitals,
nextCoreWebVitalsConfig,
...tseslint.configs.recommended,
prettier,
{
-3
View File
@@ -6,9 +6,6 @@ const nextConfig: NextConfig = {
turbopack: {
root: __dirname,
},
experimental: {
optimizeCss: true,
},
}
const withNextIntl = createNextIntlPlugin()
+1 -1
View File
@@ -27,7 +27,7 @@ export default defineConfig({
],
webServer: {
command: "next build && next start",
command: "bun --bun next build && bun --bun next start",
url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI,
timeout: 180000,
+1 -1
View File
@@ -1,6 +1,6 @@
main = ".open-next/worker.js"
name = "oh-my-openagent-web"
compatibility_date = "2025-03-25"
compatibility_date = "2026-05-18"
compatibility_flags = ["nodejs_compat"]
workers_dev = false
preview_urls = false