Update project configuration and enhance translation support. Added caching mechanism for CMS responses with a new script, updated .gitignore to include cache files, and introduced translation handling in various components. Enhanced package.json with new scripts for cache warming and deployment. Added new translation-related components and improved existing ones for better localization support.
This commit is contained in:
@@ -6,12 +6,14 @@
|
||||
"dev": "yarn generate:api-types; astro dev",
|
||||
"build": "yarn generate:api-types && astro build && pagefind --site dist && cp -r dist/pagefind public/",
|
||||
"preview": "astro preview",
|
||||
"cache:warm": "node scripts/warm-cache.mjs",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build",
|
||||
"astro": "astro",
|
||||
"generate:api-types": "node scripts/generate-api-types.mjs",
|
||||
"postinstall": "yarn generate:api-types || true",
|
||||
"firebase-deploy": "yarn build && firebase deploy --only hosting",
|
||||
"deploy": "yarn firebase-deploy",
|
||||
"firebase-deploy:nocache": "yarn build && firebase deploy --only hosting"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -23,6 +25,7 @@
|
||||
"@iconify/svelte": "^5.2.1",
|
||||
"@tailwindcss/vite": "^4.1.18",
|
||||
"astro": "^5.17.1",
|
||||
"json5": "^2.2.3",
|
||||
"marked": "^17.0.2",
|
||||
"svelte": "^5.51.2",
|
||||
"tailwindcss": "^4.1.18"
|
||||
|
||||
Reference in New Issue
Block a user