Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions nuxt/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ export default defineNuxtConfig({

nitro: {
preset: 'netlify',
// Nitro emits a .mjs.map next to every server chunk, so the Netlify functions bundle
// ships one map file per chunk. Skipping them keeps the bundle smaller and the
// server build a little shorter. The cost is that a server-side stack trace in the
// function logs no longer resolves back to the original source.
sourceMap: false,
serverAssets: [
{
baseName: 'analytics',
Expand Down