feat: polish admin UI, phone login, and product details
Switch admin auth to mobile, restyle shell/login with Vuesax icons, and add product detail fields plus public product pages. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -53,11 +53,15 @@ export default defineNuxtConfig({
|
||||
},
|
||||
},
|
||||
|
||||
routeRules: {
|
||||
"/": { swr: PAGE_CACHE_SECONDS },
|
||||
"/categories/**": { swr: PAGE_CACHE_SECONDS },
|
||||
"/sitemap.xml": { swr: 3600 },
|
||||
"/manifest.webmanifest": { swr: 3600 },
|
||||
// production only: in dev a cached page would serve stale HTML after code edits (hydration errors)
|
||||
$production: {
|
||||
routeRules: {
|
||||
"/": { swr: PAGE_CACHE_SECONDS },
|
||||
"/categories/**": { swr: PAGE_CACHE_SECONDS },
|
||||
"/products/**": { swr: PAGE_CACHE_SECONDS },
|
||||
"/sitemap.xml": { swr: 3600 },
|
||||
"/manifest.webmanifest": { swr: 3600 },
|
||||
},
|
||||
},
|
||||
|
||||
nitro: {
|
||||
|
||||
Reference in New Issue
Block a user