Remove Astro adapter (causes esbuild bundling errors on Netlify) and use a pure static build + standalone Netlify Function instead. - Removed @astrojs/netlify adapter — site builds as fully static - Created netlify/functions/admin.mts as a standalone Netlify Function - Function handles all admin API operations via GitHub API - Removed src/pages/api/admin.ts (Astro SSR route) - Local dev: admin syncs to localStorage (server sync fails silently) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
365 B
TOML
17 lines
365 B
TOML
[build]
|
|
command = "npm run build"
|
|
publish = "dist"
|
|
functions = "netlify/functions"
|
|
|
|
[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
|