build: add Cloudflare static export and deploy config

This commit is contained in:
2026-10-13 12:54:06 +03:00
parent b9eddc33ee
commit 4a5c54e922
11 changed files with 369 additions and 4 deletions

16
wrangler.jsonc Normal file
View File

@@ -0,0 +1,16 @@
{
"$schema": "https://raw.githubusercontent.com/cloudflare/workers-sdk/main/packages/wrangler/config-schema.json",
"name": "luca-pislaru-portfolio",
"compatibility_date": "2026-09-05",
"workers_dev": false,
"preview_urls": false,
"routes": [
{ "pattern": "lucapislaru.ro", "custom_domain": true }
],
"build": { "command": "npm run build:production" },
"assets": {
"directory": "./dist-cloudflare",
"html_handling": "auto-trailing-slash",
"not_found_handling": "none"
}
}