feat: bootstrap multi-tenant storefront showcase
This commit is contained in:
21
next.config.ts
Normal file
21
next.config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { NextConfig } from 'next';
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
reactStrictMode: true,
|
||||
// Each storefront is a fully static build, deployed to its own Cloudflare
|
||||
// Worker. No server runtime is needed — the @store CSS technique and the
|
||||
// per-store copy are resolved entirely at build time.
|
||||
output: 'export',
|
||||
// Pin the workspace root: sibling projects carry their own lockfiles and
|
||||
// Next would otherwise warn while inferring it.
|
||||
outputFileTracingRoot: import.meta.dirname,
|
||||
trailingSlash: true,
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
env: {
|
||||
NEXT_PUBLIC_STORE_CODE: process.env.NEXT_PUBLIC_STORE_CODE || 'executive',
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user