Add netlify.toml, disable JS/CSS post-processing
Netlify's asset post-processing was re-minifying Vite's output and causing esbuild syntax errors. Disable it since Astro/Vite already handles bundling and minification. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9b182053f1
commit
fd8bbe16e6
1 changed files with 16 additions and 0 deletions
16
netlify.toml
Normal file
16
netlify.toml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
[build]
|
||||||
|
command = "npm run build"
|
||||||
|
publish = "dist"
|
||||||
|
|
||||||
|
[build.environment]
|
||||||
|
NODE_VERSION = "22"
|
||||||
|
|
||||||
|
# Disable Netlify's asset post-processing — Astro/Vite handles bundling
|
||||||
|
[build.processing]
|
||||||
|
skip_processing = false
|
||||||
|
[build.processing.js]
|
||||||
|
bundle = false
|
||||||
|
minify = false
|
||||||
|
[build.processing.css]
|
||||||
|
bundle = false
|
||||||
|
minify = false
|
||||||
Loading…
Add table
Add a link
Reference in a new issue