chore: disable sourcemaps and update build configs
- Disables sourcemap generation in Nuxt for production optimization - Adds esbuild to pnpm workspace built dependencies - Updates Cloudflare Worker configuration to use Node.js compatibility mode - Removes source map upload from worker configuration These changes optimize the production build process and enhance worker compatibility.v
This commit is contained in:
parent
13b3f5a8ea
commit
f215c58eae
3 changed files with 4 additions and 2 deletions
|
|
@ -3,7 +3,6 @@ import { currentLocales } from './i18n/i18n'
|
|||
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
|
||||
modules: [
|
||||
'@nuxthub/core',
|
||||
'shadcn-nuxt',
|
||||
|
|
@ -54,6 +53,8 @@ export default defineNuxtConfig({
|
|||
},
|
||||
},
|
||||
|
||||
sourcemap: false,
|
||||
|
||||
future: {
|
||||
compatibilityVersion: 4,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
onlyBuiltDependencies:
|
||||
- esbuild
|
||||
- sharp
|
||||
- simple-git-hooks
|
||||
- unrs-resolver
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
name = "sink"
|
||||
main = "dist/server/index.mjs"
|
||||
compatibility_date = "2025-05-08"
|
||||
upload_source_maps = true
|
||||
compatibility_flags = [ "nodejs_compat" ]
|
||||
|
||||
[assets]
|
||||
directory = "dist/public"
|
||||
|
|
|
|||
Loading…
Reference in a new issue