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:
@@ -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,
|
||||
{
|
||||
|
||||
@@ -6,9 +6,6 @@ const nextConfig: NextConfig = {
|
||||
turbopack: {
|
||||
root: __dirname,
|
||||
},
|
||||
experimental: {
|
||||
optimizeCss: true,
|
||||
},
|
||||
}
|
||||
|
||||
const withNextIntl = createNextIntlPlugin()
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user