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.

Don't use api mode in common rake (#13503)

Damian Legawieceb3c460b8624
diff --git a/core/lib/spree/testing_support/common_rake.rb b/core/lib/spree/testing_support/common_rake.rb
index f83a766c67..c4144cd743 100644
--- a/core/lib/spree/testing_support/common_rake.rb
+++ b/core/lib/spree/testing_support/common_rake.rb
@@ -20,8 +20,7 @@ namespace :common do
javascript_enabled = args[:javascript].to_b
css_enabled = args[:css].to_b
- # Admin and Storefront require JavaScript and CSS (Tailwind) to function properly
- javascript_enabled ||= install_admin || install_storefront
+ # Admin and Storefront require CSS (Tailwind) to function properly
css_enabled ||= install_admin || install_storefront
puts args
@@ -32,9 +31,6 @@ namespace :common do
dummy_app_args = [
"--lib_name=#{ENV['LIB_NAME']}"
]
- # Use API mode only if no frontend components are needed
- use_api_mode = !install_storefront && !install_admin && !javascript_enabled && !css_enabled
- dummy_app_args << '--api' if use_api_mode
dummy_app_args << '--javascript' if javascript_enabled
dummy_app_args << '--css=tailwind' if css_enabled