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
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
|
|
||||||
modules: [
|
modules: [
|
||||||
'@nuxthub/core',
|
'@nuxthub/core',
|
||||||
'shadcn-nuxt',
|
'shadcn-nuxt',
|
||||||
|
|
@ -54,6 +53,8 @@ export default defineNuxtConfig({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
sourcemap: false,
|
||||||
|
|
||||||
future: {
|
future: {
|
||||||
compatibilityVersion: 4,
|
compatibilityVersion: 4,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
|
- esbuild
|
||||||
- sharp
|
- sharp
|
||||||
- simple-git-hooks
|
- simple-git-hooks
|
||||||
- unrs-resolver
|
- unrs-resolver
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
name = "sink"
|
name = "sink"
|
||||||
main = "dist/server/index.mjs"
|
main = "dist/server/index.mjs"
|
||||||
compatibility_date = "2025-05-08"
|
compatibility_date = "2025-05-08"
|
||||||
upload_source_maps = true
|
compatibility_flags = [ "nodejs_compat" ]
|
||||||
|
|
||||||
[assets]
|
[assets]
|
||||||
directory = "dist/public"
|
directory = "dist/public"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue