yistc-nuxt
Nuxt
References
You should fetch the latest documentation before making changes.
- antfu's Nuxt skill https://github.com/antfu/skills/blob/main/skills/nuxt/SKILL.md
- Nuxt's Official documentation https://nuxt.com/llms.txt
Backend
Preferences
Cache and Route Rules
For pages that won't change frequently, we set cache headers to improve performance and let CDN cache the content. For example, for the refund policy page, we can set the following headers:
'/refund-policy': {
headers: {
'Cache-Control': 'public, max-age=3600, s-maxage=3600, stale-while-revalidate=3600',
},
},
For nuxt js files, we set the following headers to allow caching for a longer time since they are immutable and won't change after deployment:
// default by nuxt: public, max-age=31536000, immutable
'/_nuxt/**': {
headers: {
'Cache-Control': 'public, max-age=3600, s-maxage=3600, stale-while-revalidate=3600, immutable',
},
},
More from yistc/skills
yistc-linear-issue
Workflow for handling a Linear issue end-to-end. Uupdate Linear, create a git worktree from dev, implement the change, verify it, and open a GitHub PR linked to the issue.
19yaak-cli
Use when working with the Yaak CLI and a shared Yaak GUI workspace to inspect workspaces, folders, requests, environments, and safely send API requests without exposing inherited auth tokens.
15yistc-linear-research
Workflow for researching a Linear issue, gathering all relevant context, synthesizing key insights, and posting a structured summary back to the issue as a comment.
10drizzle-orm
Examples for drizzle-orm and guides for how to get the latest documentation and API references for drizzle-orm.
8stripe-cli
Instructions and examples for using the Stripe CLI.
3hono
Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization.
1