From ef13982eda5c9a75e4936cc2aab5fa286542e96f Mon Sep 17 00:00:00 2001 From: Matt Maribojoc Date: Thu, 11 Apr 2024 08:51:09 -0400 Subject: [PATCH 1/2] fix(preview): avoid glob import for nuxt-preview (#3096) * fix(preview): avoid glob import for nuxt-preview * lint fix --- apps/docs/components/nuxt.config.ts | 6 +++++- apps/preview/next/layouts/Examples.tsx | 2 +- apps/preview/nuxt/pages/examples.vue | 12 ++++++------ apps/preview/nuxt/pages/showcases.vue | 14 ++++++++------ 4 files changed, 20 insertions(+), 14 deletions(-) diff --git a/apps/docs/components/nuxt.config.ts b/apps/docs/components/nuxt.config.ts index e5aa36bd52..d055e54429 100644 --- a/apps/docs/components/nuxt.config.ts +++ b/apps/docs/components/nuxt.config.ts @@ -31,7 +31,11 @@ export default defineNuxtConfig({ nitro: { routeRules: { '/figma': { redirect: 'https://www.figma.com/file/Q7Nr1NvjPdcGVhykkfDg2k/Storefront-UI-%7C-Design-Kit-v2.5-(public)?type=design&node-id=22913-91045&mode=design'} - } + }, + prerender: { + crawlLinks: true, + failOnError: false, + }, }, vite: { server: { diff --git a/apps/preview/next/layouts/Examples.tsx b/apps/preview/next/layouts/Examples.tsx index 573fd30dcf..924975a887 100644 --- a/apps/preview/next/layouts/Examples.tsx +++ b/apps/preview/next/layouts/Examples.tsx @@ -46,7 +46,7 @@ export default function ExampleLayout({ children }: { children: ReactElement })