Files
vmall/apps/mall/nuxt.config.ts
T
Chengdong Zhang c51e96ae41 feat(mall): address book wave 7 frontend, contract, and archive
Live addresses domain for the mall: shared contract (AddressBookEntry +
five client methods), mock adapter state v3, live domain pick, addresses
page CRUD, checkout saved-address picker with manual fallback, demo seed,
and the archived change plus address-book capability spec.
2026-09-18 16:00:05 +08:00

28 lines
974 B
TypeScript

export default defineNuxtConfig({
modules: ["@pinia/nuxt", "@nuxtjs/i18n"],
css: ["@vmall/shared/ui.css", "~/assets/mall.css"],
devtools: { enabled: false },
devServer: { port: 3000 },
runtimeConfig: {
public: {
apiBase: "http://localhost:8080/api",
// Domains served by the live backend; every other domain stays on the
// fixed-data adapter. Override with NUXT_PUBLIC_LIVE_DOMAINS='["catalog"]'.
// See openspec/changes/replace-mock-api-wave-1/design.md and waves 2-3.
liveDomains: ["catalog", "currency", "content", "shops", "brands", "auth", "cart", "orders", "shipments", "invoices", "addresses"],
appName: "mall",
},
},
i18n: {
strategy: "no_prefix",
defaultLocale: "en",
locales: [
{ code: "en", name: "English" },
{ code: "zh", name: "中文" },
],
vueI18n: "../i18n.config.ts",
bundle: { optimizeTranslationDirective: false },
},
compatibilityDate: "2025-01-01",
});