Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Resize Images so they take less space

Damian Legawiec40de5e5be240
diff --git a/guides/gatsby-config.js b/guides/gatsby-config.js
index 3deca85bfb..a8c9a0fd1e 100644
--- a/guides/gatsby-config.js
+++ b/guides/gatsby-config.js
@@ -65,7 +65,8 @@ module.exports = {
resolve: `gatsby-remark-images`,
options: {
quality: 100,
- maxWidth: 1200
+ maxWidth: 600,
+ withWebp: true
}
},
{
@@ -106,7 +107,7 @@ module.exports = {
// setting this to '{ sh: "bash" }' will let you use
// the language "sh" which will highlight using the
// bash highlighter.
- aliases: {},
+ aliases: { irb: 'ruby' },
// This toggles the display of line numbers alongside the code.
// To use it, add the following line in src/layouts/index.js
// right after importing the prism color scheme: