mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 06:56:59 +00:00
test31
This commit is contained in:
parent
41f2b35ba9
commit
a0c8678c6c
@ -10,9 +10,12 @@ const isVendure = provider === '@vercel/commerce-vendure'
|
|||||||
|
|
||||||
module.exports = withCommerceConfig({
|
module.exports = withCommerceConfig({
|
||||||
commerce,
|
commerce,
|
||||||
i18n: {
|
// i18n: {
|
||||||
locales: ['en-US', 'es'],
|
// locales: ['en-US', 'es'],
|
||||||
defaultLocale: 'en-US',
|
// defaultLocale: 'en-US',
|
||||||
|
// },
|
||||||
|
images: {
|
||||||
|
unoptimized: true,
|
||||||
},
|
},
|
||||||
rewrites() {
|
rewrites() {
|
||||||
return [
|
return [
|
||||||
@ -38,7 +41,8 @@ module.exports = withCommerceConfig({
|
|||||||
|
|
||||||
// Avoid Module not found: ESM packages (supports-color) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals
|
// Avoid Module not found: ESM packages (supports-color) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals
|
||||||
experimental: {
|
experimental: {
|
||||||
esmExternals: 'loose',
|
esmExternals: true,
|
||||||
|
// esmExternals: 'loose',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build && next export",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"analyze": "BUNDLE_ANALYZE=both next build",
|
"analyze": "BUNDLE_ANALYZE=both next build",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user