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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Changed dashboard Vite configs to avoid native config loader warnings (#15069)
Damian Legawieceed96af0341e
diff --git a/packages/dashboard/vite.config.ts b/packages/dashboard/vite.config.tsindex 4c5486f19d..7d24ef3a22 100644--- a/packages/dashboard/vite.config.ts+++ b/packages/dashboard/vite.config.ts@@ -6,7 +6,7 @@ import { defineConfig, loadEnv } from 'vite'// generator, so the shell's committed routeTree.gen.ts is produced by the// exact machinery hosts use (with VITE_EXAMPLE_PLUGIN=true, including the// example plugin's file routes).-import { spreeDashboardPlugin } from './src/vite'+import { spreeDashboardPlugin } from './src/vite/index.ts'export default defineConfig(({ mode }) => {// loadEnv, not process.env: Vite doesn't load .env files before evaluating@@ -38,7 +38,7 @@ export default defineConfig(({ mode }) => {],resolve: {alias: {- '@': path.resolve(__dirname, './src'),+ '@': path.resolve(import.meta.dirname, './src'),},},// Proxy /api to the Rails server so the SPA is same-origin with the API indiff --git a/packages/seller-dashboard/vite.config.ts b/packages/seller-dashboard/vite.config.tsindex 271bffad4b..0f3e1bbe11 100644--- a/packages/seller-dashboard/vite.config.ts+++ b/packages/seller-dashboard/vite.config.ts@@ -5,7 +5,7 @@ import { defineConfig } from 'vite'// generator, so the shell's committed routeTree.gen.ts is produced by the// exact machinery hosts use, which is what makes the shell's own routes// typecheck against the tree they compose into.-import { spreeSellerDashboardPlugin } from './src/vite'+import { spreeSellerDashboardPlugin } from './src/vite/index.ts'export default defineConfig({plugins: [spreeSellerDashboardPlugin({ root: import.meta.dirname }), react()],