Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering modes #167

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
NUXT_IMAGE_DOMAINS = "Comma separated list of domains. example.com,example2.com"

[build]
command = "nuxt generate"
command = "nuxt build"

[images]
remote_images = ["https://secure.woonuxt.com/.*"]
1 change: 1 addition & 0 deletions woonuxt_base/app/components/CategoryCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const ImageHeight = Math.round(imageWidth * 1.25);
:alt="node.image?.altText || node.name"
:title="node.image?.title || node.name"
:loading="imageLoading"
:sizes="`50vw md:${imageWidth}px`"
placeholder
placeholder-class="blur-xl" />
<div class="absolute inset-x-0 bottom-0 opacity-50 bg-gradient-to-t from-black to-transparent h-1/2" />
Expand Down
2 changes: 2 additions & 0 deletions woonuxt_base/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export default defineNuxtConfig({
nitro: {
routeRules: {
'/': { prerender: true },
'/**': { prerender: true },
'/products': { swr: 3600 },
'/products/**': { swr: 3600 },
'/checkout/order-received/**': { ssr: false },
'/order-summary/**': { ssr: false },
Expand Down